Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001136/0.001136, allocations: 113.7 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001432/0.001432, allocations: 211.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 55.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2785, allocations: 50.54 MB / 408.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.009096/0.2876, allocations: 7.526 MB / 416.3 MB, free: 9.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.3031, allocations: 10.73 MB / 427 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001847/0.305, allocations: 79.31 kB / 427.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002488/0.3075, allocations: 0.7131 MB / 427.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004905/0.3125, allocations: 1.196 MB / 429 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002529/0.315, allocations: 0.6701 MB / 429.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005105/0.3202, allocations: 2.564 MB / 432.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007472/0.321, allocations: 287.9 kB / 432.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00102/0.322, allocations: 0.4937 MB / 433 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001014/0.3231, allocations: 0.5356 MB / 433.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002514/0.3233, allocations: 56 kB / 433.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002578/0.3259, allocations: 0.7766 MB / 434.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003667/0.3263, allocations: 186.8 kB / 434.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001279/0.3276, allocations: 0.6715 MB / 435.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003963/0.3316, allocations: 1.952 MB / 437.2 MB, free: 4.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.3316, allocations: 4 kB / 437.2 MB, free: 4.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.3317, allocations: 0 / 437.2 MB, free: 4.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.452e-05/0.3317, allocations: 4 kB / 437.2 MB, free: 4.953 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.004105/0.3359, allocations: 2.042 MB / 439.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/0.3359, allocations: 12.03 kB / 439.2 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001584/0.3361, allocations: 94.64 kB / 439.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003806/0.3365, allocations: 203.7 kB / 439.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002684/0.3392, allocations: 1.354 MB / 440.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.16e-05/0.3393, allocations: 33 kB / 440.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.3394, allocations: 51.94 kB / 441 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.3405, allocations: 0.5119 MB / 441.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.3405, allocations: 0 / 441.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.999e-05/0.3406, allocations: 16 kB / 441.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.146e-05/0.3406, allocations: 19.98 kB / 441.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000936/0.3416, allocations: 476 kB / 442 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003714/0.3453, allocations: 2.101 MB / 444.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.3464, allocations: 0.7001 MB / 444.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007794/0.3472, allocations: 0.5212 MB / 445.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006702/0.3539, allocations: 4.916 MB / 450.2 MB, free: 6.992 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006629/0.3547, allocations: 309.9 kB / 450.5 MB, free: 6.684 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 3.026e-06/0.3547, allocations: 0 / 450.5 MB, free: 6.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005493/0.3602, allocations: 2.428 MB / 452.9 MB, free: 4.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/0.3603, allocations: 67.77 kB / 453 MB, free: 4.102 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001679/0.362, allocations: 1.288 MB / 454.3 MB, free: 2.816 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.457e-05/0.3621, allocations: 33.7 kB / 454.3 MB, free: 2.777 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005883/0.3626, allocations: 0.7041 MB / 455 MB, free: 2.066 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/0.3629, allocations: 234 kB / 455.3 MB, free: 1.836 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002761/0.3632, allocations: 126.3 kB / 455.4 MB, free: 1.707 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3633, allocations: 333.9 kB / 455.7 MB, free: 1.375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005983/0.3639, allocations: 209.6 kB / 455.9 MB, free: 1.168 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005325/0.3644, allocations: 364.5 kB / 456.3 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.3656, allocations: 0.6112 MB / 456.9 MB, free: 96 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-06/0.3656, allocations: 3.938 kB / 456.9 MB, free: 92 kB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001815/0.3674, allocations: 0.9782 MB / 457.9 MB, free: 15.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.3675, allocations: 4 kB / 457.9 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.625e-05/0.3676, allocations: 60 kB / 457.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005397/0.3681, allocations: 188.8 kB / 458.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004515/0.3686, allocations: 107.8 kB / 458.2 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003351/0.3719, allocations: 2.766 MB / 461 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006368/0.3726, allocations: 28.03 kB / 461 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.663e-05/0.3727, allocations: 32 kB / 461 MB, free: 11.79 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 (v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,17,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005156/0.3732, allocations: 277.6 kB / 461.3 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002483/0.3735, allocations: 194.8 kB / 461.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001969/0.3754, allocations: 0.9681 MB / 462.5 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.3755, allocations: 7.984 kB / 462.5 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3755, allocations: 4 kB / 462.5 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.3755, allocations: 0 / 462.5 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001263/0.3768, allocations: 0.9059 MB / 463.4 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.333e-05/0.3769, allocations: 63.98 kB / 463.5 MB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003404/0.3772, allocations: 63.95 kB / 463.5 MB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004502/0.3777, allocations: 176.7 kB / 463.7 MB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.256e-05/0.3777, allocations: 23.88 kB / 463.7 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00335/0.3811, allocations: 2.749 MB / 466.5 MB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3811, allocations: 0 / 466.5 MB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.3835, allocations: 1.202 MB / 467.7 MB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005113/0.384, allocations: 256 kB / 467.9 MB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001699/0.3842, allocations: 15.94 kB / 467.9 MB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003791/0.3846, allocations: 19.98 kB / 467.9 MB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/0.3847, allocations: 52.38 kB / 468 MB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.036e-05/0.3848, allocations: 19.98 kB / 468 MB, free: 4.555 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001262/0.3861, allocations: 0.8535 MB / 468.9 MB, free: 3.711 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3861, allocations: 0 / 468.9 MB, free: 3.711 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001191/0.3873, allocations: 399.2 kB / 469.3 MB, free: 3.32 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vbx,T2.vbe,T2.vbx) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,17,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003174/0.3905, allocations: 2.094 MB / 471.4 MB, free: 1.191 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001893/0.3924, allocations: 0.9172 MB / 472.3 MB, free: 256 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3924, allocations: 4 kB / 472.3 MB, free: 252 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.3937, allocations: 0.647 MB / 472.9 MB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.3949, allocations: 221.6 kB / 473.1 MB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/0.4105, allocations: 9.458 MB / 482.6 MB, free: 5.598 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009157/0.4115, allocations: 1.17 MB / 483.8 MB, free: 4.395 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006062/0.4121, allocations: 187.2 kB / 483.9 MB, free: 4.207 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006681/0.4128, allocations: 0.5657 MB / 484.5 MB, free: 3.641 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4128, allocations: 0 / 484.5 MB, free: 3.641 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07266/0.4855, allocations: 29.73 MB / 0.5022 GB, free: 6.023 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.88, allocations: 12.83 kB / 0.5022 GB, free: 6.02 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches