Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001652/0.001658, allocations: 107.3 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001925/0.001926, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.134/2.134, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 41.7 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1101, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.01193/0.1221, allocations: 7.508 MB / 357.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01855/0.1406, allocations: 10.71 MB / 368.4 MB, free: 2.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001436/0.1421, allocations: 39.69 kB / 368.4 MB, free: 1.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002647/0.1448, allocations: 0.7026 MB / 369.1 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00522/0.1501, allocations: 1.184 MB / 370.3 MB, free: 80 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2232/0.3733, allocations: 0.6617 MB / 371 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006094/0.3794, allocations: 2.531 MB / 373.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000747/0.3802, allocations: 281.5 kB / 373.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.3812, allocations: 484.8 kB / 374.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001106/0.3824, allocations: 0.5301 MB / 374.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002553/0.3827, allocations: 56.38 kB / 374.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003081/0.3858, allocations: 0.767 MB / 375.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002903/0.3861, allocations: 190.7 kB / 375.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001246/0.3873, allocations: 0.6761 MB / 376.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003548/0.3909, allocations: 1.935 MB / 378.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3909, allocations: 1.312 kB / 378.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3909, allocations: 0.6562 kB / 378.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.839e-05/0.391, allocations: 0 / 378.4 MB, free: 9.539 MB / 302.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.004887/0.3959, allocations: 1.972 MB / 380.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.396, allocations: 13.39 kB / 380.4 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001786/0.3961, allocations: 92.83 kB / 380.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004566/0.3966, allocations: 201.2 kB / 380.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003239/0.3999, allocations: 1.341 MB / 382 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.454e-05/0.3999, allocations: 32.31 kB / 382 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/0.4001, allocations: 49.31 kB / 382.1 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.4016, allocations: 0.5148 MB / 382.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.4016, allocations: 0 / 382.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.498e-05/0.4017, allocations: 24.05 kB / 382.6 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.638e-05/0.4018, allocations: 13.8 kB / 382.6 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001507/0.4033, allocations: 475.1 kB / 383.1 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004653/0.408, allocations: 2.1 MB / 385.2 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/0.4095, allocations: 0.7041 MB / 385.9 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.4106, allocations: 0.5209 MB / 386.4 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01087/0.4215, allocations: 6.522 MB / 392.9 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008297/0.4223, allocations: 293.7 kB / 393.2 MB, free: 15.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 4.538e-06/0.4224, allocations: 3.938 kB / 393.2 MB, free: 15.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.006124/0.4285, allocations: 1.961 MB / 395.2 MB, free: 14.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.4286, allocations: 57.34 kB / 395.3 MB, free: 14.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002756/0.4314, allocations: 1.299 MB / 396.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.616e-05/0.4315, allocations: 35.08 kB / 396.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009289/0.4324, allocations: 0.7162 MB / 397.3 MB, free: 13.42 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002466/0.4327, allocations: 199.7 kB / 397.5 MB, free: 13.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002804/0.433, allocations: 124 kB / 397.6 MB, free: 13.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.4331, allocations: 331 kB / 397.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006885/0.4338, allocations: 201.8 kB / 398.1 MB, free: 12.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008265/0.4347, allocations: 363.9 kB / 398.5 MB, free: 12.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.4363, allocations: 0.5957 MB / 399.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.4363, allocations: 1.969 kB / 399.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002584/0.4389, allocations: 0.9184 MB / 400 MB, free: 11.61 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.4389, allocations: 10.47 kB / 400 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/0.4391, allocations: 57.03 kB / 400.1 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005706/0.4396, allocations: 151.3 kB / 400.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006925/0.4404, allocations: 112.7 kB / 400.3 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004254/0.4446, allocations: 2.519 MB / 402.9 MB, free: 9.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.4457, allocations: 29.48 kB / 402.9 MB, free: 9.352 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.57e-05/0.4458, allocations: 37.22 kB / 402.9 MB, free: 9.344 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (57): * Single equations (assignments): 54 * 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,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006893/0.4465, allocations: 271.1 kB / 403.2 MB, free: 9.137 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000425/0.447, allocations: 188.4 kB / 403.4 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003213/0.4502, allocations: 0.8808 MB / 404.3 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.4502, allocations: 7.984 kB / 404.3 MB, free: 8.105 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/0.4503, allocations: 4 kB / 404.3 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.4503, allocations: 0 / 404.3 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00202/0.4523, allocations: 0.8696 MB / 405.1 MB, free: 7.195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001203/0.4524, allocations: 52 kB / 405.2 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005344/0.453, allocations: 75.17 kB / 405.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006126/0.4536, allocations: 144.7 kB / 405.4 MB, free: 6.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.476e-05/0.4537, allocations: 20 kB / 405.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00434/0.4581, allocations: 2.501 MB / 407.9 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4581, allocations: 0 / 407.9 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00325/0.4613, allocations: 1.062 MB / 409 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007153/0.4621, allocations: 247 kB / 409.2 MB, free: 2.953 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003511/0.4625, allocations: 11.98 kB / 409.2 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007358/0.4632, allocations: 19.98 kB / 409.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000181/0.4634, allocations: 48.56 kB / 409.3 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.487e-05/0.4635, allocations: 24.88 kB / 409.3 MB, free: 2.852 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002065/0.4656, allocations: 0.8578 MB / 410.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4656, allocations: 4 kB / 410.2 MB, free: 2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00186/0.4675, allocations: 371.8 kB / 410.5 MB, free: 1.637 MB / 318.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 (30): * Single equations (assignments): 24 * 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,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004572/0.4721, allocations: 1.973 MB / 412.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002673/0.4747, allocations: 0.866 MB / 413.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4748, allocations: 0 / 413.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001541/0.4763, allocations: 0.5781 MB / 414 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.478, allocations: 212.4 kB / 414.2 MB, free: 14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02158/0.4996, allocations: 10.31 MB / 424.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001062/0.5007, allocations: 1.17 MB / 425.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001065/0.5018, allocations: 187.2 kB / 425.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009885/0.5028, allocations: 0.5769 MB / 426.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5029, allocations: 0 / 426.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1852/0.688, allocations: 28.59 MB / 455 MB, free: 4.727 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.48/19.17, allocations: 8 kB / 455 MB, free: 4.719 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches