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.001546/0.001546, allocations: 104.3 kB / 17.73 MB, free: 5.238 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.001873/0.001874, allocations: 187.1 kB / 18.66 MB, free: 4.312 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.327/1.327, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001262/0.001262, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07891/0.08018, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.1699/0.2501, allocations: 7.337 MB / 382 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009636/0.2598, allocations: 10.39 MB / 392.4 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001155/0.261, allocations: 78.34 kB / 392.4 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001755/0.2628, allocations: 0.6909 MB / 393.1 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003268/0.2661, allocations: 1.169 MB / 394.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001883/0.268, allocations: 0.6641 MB / 395 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003428/0.2714, allocations: 2.491 MB / 397.5 MB, free: 112 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004237/0.2719, allocations: 291.6 kB / 397.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006452/0.2725, allocations: 465.7 kB / 398.2 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005644/0.2731, allocations: 0.5284 MB / 398.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.717e-05/0.2732, allocations: 55 kB / 398.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001896/0.2751, allocations: 0.6948 MB / 399.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001845/0.2753, allocations: 183.1 kB / 399.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006239/0.2759, allocations: 0.6767 MB / 400.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002558/0.2785, allocations: 1.944 MB / 402.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2785, allocations: 0 / 402.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2785, allocations: 0 / 402.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.827e-05/0.2785, allocations: 5.125 kB / 402.3 MB, free: 13.92 MB / 334.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.00304/0.2816, allocations: 1.979 MB / 404.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.2816, allocations: 9.938 kB / 404.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.2818, allocations: 88.59 kB / 404.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002603/0.282, allocations: 198.6 kB / 404.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001907/0.2839, allocations: 1.335 MB / 405.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.429e-05/0.284, allocations: 39.19 kB / 405.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.732e-05/0.2841, allocations: 45.02 kB / 406 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009465/0.285, allocations: 0.5148 MB / 406.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.2851, allocations: 1.031 kB / 406.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.891e-05/0.2851, allocations: 15.47 kB / 406.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/0.2851, allocations: 19.08 kB / 406.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009285/0.2861, allocations: 475.2 kB / 407 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003115/0.2892, allocations: 2.101 MB / 409.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.2902, allocations: 0.6939 MB / 409.8 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008796/0.2911, allocations: 0.5125 MB / 410.3 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00852/0.2997, allocations: 6.502 MB / 416.8 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005953/0.3003, allocations: 289.6 kB / 417.1 MB, free: 2.305 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 4.598e-06/0.3003, allocations: 0 / 417.1 MB, free: 2.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=59): time 0.003703/0.304, allocations: 1.971 MB / 419 MB, free: 1.113 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.3041, allocations: 57.5 kB / 419.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001754/0.3058, allocations: 1.295 MB / 420.4 MB, free: 372 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.724e-05/0.3059, allocations: 36.45 kB / 420.4 MB, free: 332 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006026/0.3065, allocations: 0.7201 MB / 421.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.3066, allocations: 192.5 kB / 421.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001797/0.3068, allocations: 130.6 kB / 421.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.307, allocations: 327.5 kB / 421.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004251/0.3074, allocations: 195.1 kB / 422 MB, free: 15.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005273/0.3079, allocations: 364.4 kB / 422.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002286/0.3102, allocations: 1.135 MB / 423.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.3103, allocations: 8.812 kB / 423.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001617/0.3119, allocations: 0.9186 MB / 424.4 MB, free: 12.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.3119, allocations: 8 kB / 424.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.569e-05/0.312, allocations: 52 kB / 424.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000412/0.3124, allocations: 164.1 kB / 424.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/0.3129, allocations: 111.8 kB / 424.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002852/0.3158, allocations: 2.52 MB / 427.2 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005386/0.3163, allocations: 24.03 kB / 427.3 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.645e-05/0.3164, allocations: 32 kB / 427.3 MB, free: 9.508 MB / 350.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.0004695/0.3169, allocations: 282.8 kB / 427.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000223/0.3171, allocations: 185.8 kB / 427.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001896/0.319, allocations: 0.8878 MB / 428.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.319, allocations: 8 kB / 428.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.319, allocations: 0 / 428.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.319, allocations: 7.984 kB / 428.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/0.3201, allocations: 0.863 MB / 429.5 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.469e-05/0.3202, allocations: 53.75 kB / 429.6 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003143/0.3205, allocations: 63.94 kB / 429.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003515/0.3209, allocations: 149.5 kB / 429.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.557e-05/0.321, allocations: 27.98 kB / 429.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002706/0.3237, allocations: 2.491 MB / 432.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3237, allocations: 0 / 432.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.3256, allocations: 1.068 MB / 433.4 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004211/0.326, allocations: 246.9 kB / 433.6 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001665/0.3262, allocations: 12 kB / 433.6 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003892/0.3266, allocations: 27.98 kB / 433.6 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.3267, allocations: 44.38 kB / 433.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-05/0.3268, allocations: 23.98 kB / 433.7 MB, free: 2.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001111/0.3279, allocations: 0.8578 MB / 434.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3279, allocations: 0 / 434.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001053/0.329, allocations: 383.7 kB / 434.9 MB, free: 1.609 MB / 350.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.003063/0.332, allocations: 1.965 MB / 436.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.3338, allocations: 0.8482 MB / 437.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.3338, allocations: 0 / 437.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009866/0.3348, allocations: 0.5747 MB / 438.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009272/0.3357, allocations: 192.3 kB / 438.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01402/0.3498, allocations: 9.247 MB / 447.8 MB, free: 4.379 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000744/0.3506, allocations: 1.174 MB / 448.9 MB, free: 3.172 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005036/0.3511, allocations: 183.2 kB / 449.1 MB, free: 2.988 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005877/0.3517, allocations: 0.5735 MB / 449.7 MB, free: 2.418 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3517, allocations: 0 / 449.7 MB, free: 2.418 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06005/0.4117, allocations: 28.92 MB / 478.6 MB, free: 5.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.01, allocations: 8 kB / 478.6 MB, free: 5.398 MB / 398.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