Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_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.001251/0.001251, allocations: 103.8 kB / 17.58 MB, free: 5.426 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.001259/0.001259, allocations: 192.2 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 55.92 kB / 280.8 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1345, allocations: 46.62 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.01223/0.1468, allocations: 7.347 MB / 334.7 MB, free: 13.01 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02017/0.1671, allocations: 10.38 MB / 345.1 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002059/0.1692, allocations: 39.69 kB / 345.1 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003196/0.1725, allocations: 0.687 MB / 345.8 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007493/0.18, allocations: 1.176 MB / 347 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003607/0.1837, allocations: 0.67 MB / 347.7 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00474/0.1884, allocations: 2.475 MB / 350.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005581/0.189, allocations: 283.9 kB / 350.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008008/0.1898, allocations: 461.7 kB / 350.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001295/0.1912, allocations: 0.5239 MB / 351.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002431/0.1914, allocations: 59.98 kB / 351.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003619/0.1951, allocations: 0.6948 MB / 352.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000337/0.1954, allocations: 182.8 kB / 352.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001447/0.1969, allocations: 0.6715 MB / 353 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004508/0.2014, allocations: 1.934 MB / 354.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.2015, allocations: 0 / 354.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.2015, allocations: 0 / 354.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.137e-05/0.2016, allocations: 0 / 354.9 MB, free: 8.676 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.005645/0.2072, allocations: 1.981 MB / 356.9 MB, free: 6.637 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.2073, allocations: 8.031 kB / 356.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002008/0.2075, allocations: 86.7 kB / 357 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006347/0.2082, allocations: 202.6 kB / 357.2 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003706/0.2119, allocations: 1.344 MB / 358.6 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.986e-05/0.212, allocations: 33 kB / 358.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.2122, allocations: 47.92 kB / 358.6 MB, free: 4.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.2138, allocations: 0.5197 MB / 359.2 MB, free: 4.336 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.2139, allocations: 0 / 359.2 MB, free: 4.336 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.148e-05/0.214, allocations: 16 kB / 359.2 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.468e-05/0.214, allocations: 12 kB / 359.2 MB, free: 4.309 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001727/0.2158, allocations: 476 kB / 359.6 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005542/0.2213, allocations: 2.104 MB / 361.7 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.2232, allocations: 0.7041 MB / 362.5 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.2245, allocations: 0.5135 MB / 363 MB, free: 400 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01436/0.2389, allocations: 6.517 MB / 369.5 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001014/0.2399, allocations: 294.5 kB / 369.8 MB, free: 8.586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 4.739e-06/0.24, allocations: 4 kB / 369.8 MB, free: 8.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.007006/0.247, allocations: 1.956 MB / 371.7 MB, free: 6.566 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.265e-05/0.2471, allocations: 63.83 kB / 371.8 MB, free: 6.492 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003131/0.2503, allocations: 1.296 MB / 373.1 MB, free: 5.199 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.559e-05/0.2504, allocations: 37.7 kB / 373.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.2515, allocations: 0.6995 MB / 373.8 MB, free: 4.453 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003332/0.2518, allocations: 209 kB / 374 MB, free: 4.246 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000341/0.2522, allocations: 122.2 kB / 374.1 MB, free: 4.121 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002119/0.2524, allocations: 337.9 kB / 374.5 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008207/0.2533, allocations: 193.6 kB / 374.7 MB, free: 3.594 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009518/0.2543, allocations: 363.8 kB / 375 MB, free: 3.176 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002736/0.257, allocations: 1.135 MB / 376.2 MB, free: 1.965 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.257, allocations: 3.938 kB / 376.2 MB, free: 1.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002423/0.2595, allocations: 0.9145 MB / 377.1 MB, free: 1.039 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.2595, allocations: 7.984 kB / 377.1 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001433/0.2597, allocations: 60 kB / 377.1 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006883/0.2604, allocations: 156.3 kB / 377.3 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007925/0.2612, allocations: 115.8 kB / 377.4 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2327/0.4939, allocations: 2.508 MB / 379.9 MB, free: 52.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008939/0.4948, allocations: 30.97 kB / 379.9 MB, free: 52.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.495, allocations: 35.52 kB / 380 MB, free: 52.64 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: T2.vbx:VARIABLE(unit = "V" fixed = true ) type: Real T1.vbx:VARIABLE(unit = "V" fixed = true ) type: Real 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.0008921/0.4959, allocations: 277.8 kB / 380.3 MB, free: 52.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003484/0.4962, allocations: 178.3 kB / 380.4 MB, free: 52.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003505/0.4998, allocations: 0.8888 MB / 381.3 MB, free: 52.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.4998, allocations: 15.56 kB / 381.3 MB, free: 52.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.4998, allocations: 3.5 kB / 381.3 MB, free: 52.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.699e-06/0.4998, allocations: 0 / 381.3 MB, free: 52.44 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001732/0.5016, allocations: 0.8586 MB / 382.2 MB, free: 52.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001386/0.5017, allocations: 59.77 kB / 382.3 MB, free: 52.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004995/0.5022, allocations: 62.3 kB / 382.3 MB, free: 52.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000564/0.5028, allocations: 151.9 kB / 382.5 MB, free: 51.99 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.857e-05/0.5029, allocations: 16.39 kB / 382.5 MB, free: 51.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003685/0.5066, allocations: 2.508 MB / 385 MB, free: 50.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5066, allocations: 0 / 385 MB, free: 50.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003203/0.5098, allocations: 1.063 MB / 386 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000523/0.5104, allocations: 247 kB / 386.3 MB, free: 49.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002187/0.5106, allocations: 11.83 kB / 386.3 MB, free: 49.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006004/0.5112, allocations: 21.64 kB / 386.3 MB, free: 49.42 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002314/0.5115, allocations: 44.22 kB / 386.4 MB, free: 49.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.964e-05/0.5116, allocations: 23.55 kB / 386.4 MB, free: 49.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002062/0.5136, allocations: 0.8592 MB / 387.2 MB, free: 49.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5137, allocations: 2.375 kB / 387.2 MB, free: 49.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001917/0.5156, allocations: 375.3 kB / 387.6 MB, free: 49.07 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.004899/0.5205, allocations: 1.969 MB / 389.6 MB, free: 48.03 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003172/0.5237, allocations: 0.8574 MB / 390.4 MB, free: 47.62 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5237, allocations: 0 / 390.4 MB, free: 47.62 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001771/0.5255, allocations: 0.5903 MB / 391 MB, free: 47.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.527, allocations: 185.7 kB / 391.2 MB, free: 47.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02113/0.5482, allocations: 10.28 MB / 401.5 MB, free: 41.26 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007021/0.5489, allocations: 1.178 MB / 402.7 MB, free: 40.21 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001233/0.5502, allocations: 188.1 kB / 402.9 MB, free: 40.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008051/0.551, allocations: 0.5696 MB / 403.4 MB, free: 39.45 MB / 318.1 MB Notification: Performance of SimCode: time 2.494e-06/0.551, allocations: 4 kB / 403.4 MB, free: 39.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09924/0.6503, allocations: 28.52 MB / 431.9 MB, free: 10.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/13.12, allocations: 12.06 kB / 432 MB, free: 10.82 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches