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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 183.9 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 47.92 kB / 370.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2565, allocations: 52.18 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008698/0.2652, allocations: 7.541 MB / 430.2 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01444/0.2796, allocations: 10.76 MB / 440.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001717/0.2814, allocations: 122.6 kB / 441 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002217/0.2836, allocations: 0.712 MB / 441.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004166/0.2877, allocations: 1.203 MB / 443 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002044/0.2898, allocations: 0.68 MB / 443.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00413/0.2939, allocations: 2.547 MB / 446.2 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003875/0.2943, allocations: 188.3 kB / 446.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007353/0.295, allocations: 0.5016 MB / 446.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006835/0.2957, allocations: 0.5472 MB / 447.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.964e-05/0.2958, allocations: 56 kB / 447.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001756/0.2976, allocations: 0.7649 MB / 448.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.2977, allocations: 186.8 kB / 448.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006339/0.2984, allocations: 0.6754 MB / 449.1 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002463/0.3008, allocations: 1.956 MB / 451 MB, free: 2.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3008, allocations: 0 / 451 MB, free: 2.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3009, allocations: 0 / 451 MB, free: 2.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.007e-05/0.3009, allocations: 8 kB / 451.1 MB, free: 2.004 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.003014/0.3039, allocations: 1.971 MB / 453 MB, free: 15.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.3039, allocations: 8.031 kB / 453 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.304, allocations: 94.64 kB / 453.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000244/0.3043, allocations: 203.7 kB / 453.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002027/0.3063, allocations: 1.24 MB / 454.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.544e-05/0.3063, allocations: 40.92 kB / 454.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.028e-05/0.3064, allocations: 44 kB / 454.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009724/0.3074, allocations: 0.5119 MB / 455.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.3074, allocations: 0 / 455.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.101e-05/0.3075, allocations: 20 kB / 455.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.104e-05/0.3075, allocations: 15.98 kB / 455.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000959/0.3085, allocations: 476.1 kB / 455.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0034/0.3119, allocations: 2.058 MB / 457.7 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009736/0.3128, allocations: 0.4995 MB / 458.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007268/0.3136, allocations: 461.5 kB / 458.7 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006625/0.3202, allocations: 2.604 MB / 461.3 MB, free: 7.562 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006027/0.3208, allocations: 294.1 kB / 461.6 MB, free: 7.262 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.234e-06/0.3208, allocations: 0 / 461.6 MB, free: 7.262 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.003863/0.3247, allocations: 1.908 MB / 463.5 MB, free: 5.316 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.3247, allocations: 59.84 kB / 463.5 MB, free: 5.246 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001646/0.3264, allocations: 1.296 MB / 464.8 MB, free: 3.953 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.058e-05/0.3264, allocations: 37.7 kB / 464.9 MB, free: 3.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000644/0.327, allocations: 0.7157 MB / 465.6 MB, free: 3.188 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.3272, allocations: 218.2 kB / 465.8 MB, free: 2.973 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/0.3274, allocations: 122.3 kB / 465.9 MB, free: 2.848 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3276, allocations: 334 kB / 466.2 MB, free: 2.516 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004276/0.328, allocations: 193.6 kB / 466.4 MB, free: 2.328 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005438/0.3286, allocations: 369.8 kB / 466.8 MB, free: 1.902 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.3296, allocations: 0.5959 MB / 467.4 MB, free: 1.234 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.3296, allocations: 8 kB / 467.4 MB, free: 1.227 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001701/0.3313, allocations: 0.9212 MB / 468.3 MB, free: 304 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.3313, allocations: 8 kB / 468.3 MB, free: 296 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.952e-05/0.3314, allocations: 52 kB / 468.4 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004327/0.3318, allocations: 164.2 kB / 468.5 MB, free: 80 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.3323, allocations: 119.7 kB / 468.6 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00293/0.3352, allocations: 2.408 MB / 471.1 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000513/0.3358, allocations: 24.03 kB / 471.1 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.411e-05/0.3358, allocations: 32 kB / 471.1 MB, free: 13.39 MB / 382.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.0004576/0.3363, allocations: 273.7 kB / 471.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/0.3365, allocations: 198.9 kB / 471.6 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001821/0.3383, allocations: 0.8814 MB / 472.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.3383, allocations: 4 kB / 472.5 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3383, allocations: 4 kB / 472.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.3383, allocations: 3.984 kB / 472.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.3395, allocations: 0.8427 MB / 473.3 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.08e-05/0.3395, allocations: 52 kB / 473.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003205/0.3399, allocations: 59.95 kB / 473.4 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000385/0.3403, allocations: 151.5 kB / 473.6 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.292e-05/0.3403, allocations: 20 kB / 473.6 MB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00284/0.3431, allocations: 2.379 MB / 476 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/0.3431, allocations: 4.031 kB / 476 MB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002019/0.3452, allocations: 1.072 MB / 477 MB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004794/0.3456, allocations: 178.9 kB / 477.2 MB, free: 7.074 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.3458, allocations: 8 kB / 477.2 MB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003488/0.3461, allocations: 23.98 kB / 477.2 MB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/0.3463, allocations: 56.34 kB / 477.3 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.136e-05/0.3463, allocations: 20 kB / 477.3 MB, free: 6.969 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001344/0.3477, allocations: 0.8617 MB / 478.2 MB, free: 6.117 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3477, allocations: 0 / 478.2 MB, free: 6.117 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001145/0.3488, allocations: 375.2 kB / 478.5 MB, free: 5.75 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 (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.002933/0.3518, allocations: 1.973 MB / 480.5 MB, free: 3.746 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001683/0.3534, allocations: 0.8049 MB / 481.3 MB, free: 2.914 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3534, allocations: 4.062 kB / 481.3 MB, free: 2.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.3545, allocations: 0.555 MB / 481.9 MB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000961/0.3554, allocations: 200.9 kB / 482.1 MB, free: 2.133 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/0.369, allocations: 9.306 MB / 491.4 MB, free: 8.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008041/0.3698, allocations: 1.174 MB / 492.6 MB, free: 7.297 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004866/0.3703, allocations: 187.2 kB / 492.7 MB, free: 7.109 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006301/0.3709, allocations: 0.5735 MB / 493.3 MB, free: 6.535 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3709, allocations: 0 / 493.3 MB, free: 6.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07781/0.4487, allocations: 29.66 MB / 0.5107 GB, free: 9.102 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.64/15.08, allocations: 6.391 kB / 0.5107 GB, free: 9.098 MB / 430.1 MB " [Timeout remaining time 645] (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 4.998e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.749917764998827]