Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 208.8 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.43/1.43, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 47.92 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2294, allocations: 53.36 MB / 431.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008035/0.2374, allocations: 6.481 MB / 437.5 MB, free: 172 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01238/0.2498, allocations: 9.324 MB / 446.9 MB, free: 6.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00106/0.2508, allocations: 122.6 kB / 447 MB, free: 6.684 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001766/0.2526, allocations: 0.6441 MB / 447.6 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00332/0.2559, allocations: 1.202 MB / 448.8 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001707/0.2576, allocations: 0.6759 MB / 449.5 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003933/0.2616, allocations: 2.582 MB / 452.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003446/0.2619, allocations: 176.3 kB / 452.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006953/0.2626, allocations: 0.5132 MB / 452.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006095/0.2632, allocations: 0.4927 MB / 453.3 MB, free: 360 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.2633, allocations: 56 kB / 453.3 MB, free: 304 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001531/0.2649, allocations: 0.6908 MB / 454 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001716/0.265, allocations: 186.8 kB / 454.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000532/0.2656, allocations: 0.5123 MB / 454.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002293/0.2679, allocations: 1.972 MB / 456.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2679, allocations: 3.938 kB / 456.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2679, allocations: 4 kB / 456.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.081e-05/0.2679, allocations: 0 / 456.7 MB, free: 12.92 MB / 366.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.003077/0.271, allocations: 1.967 MB / 458.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.271, allocations: 8.031 kB / 458.7 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001073/0.2711, allocations: 90.69 kB / 458.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000268/0.2714, allocations: 207.7 kB / 459 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002112/0.2735, allocations: 1.244 MB / 460.2 MB, free: 9.301 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.496e-05/0.2735, allocations: 36.98 kB / 460.2 MB, free: 9.262 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.983e-05/0.2736, allocations: 51.95 kB / 460.3 MB, free: 9.211 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009415/0.2746, allocations: 0.508 MB / 460.8 MB, free: 8.695 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.2746, allocations: 3.984 kB / 460.8 MB, free: 8.691 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.989e-05/0.2746, allocations: 20 kB / 460.8 MB, free: 8.672 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.2747, allocations: 15.98 kB / 460.8 MB, free: 8.656 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009648/0.2756, allocations: 480.1 kB / 461.3 MB, free: 8.191 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003089/0.2787, allocations: 1.941 MB / 463.2 MB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009549/0.2797, allocations: 0.4939 MB / 463.7 MB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007411/0.2804, allocations: 473.9 kB / 464.2 MB, free: 5.207 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004866/0.2853, allocations: 2.28 MB / 466.5 MB, free: 2.902 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005755/0.2858, allocations: 313.6 kB / 466.8 MB, free: 2.582 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 2.444e-06/0.2858, allocations: 0 / 466.8 MB, free: 2.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004841/0.2907, allocations: 2.266 MB / 469.1 MB, free: 284 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/0.2907, allocations: 63.78 kB / 469.1 MB, free: 208 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001673/0.2924, allocations: 1.291 MB / 470.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.896e-05/0.2925, allocations: 41.7 kB / 470.5 MB, free: 14.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006832/0.2932, allocations: 0.7003 MB / 471.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/0.2934, allocations: 234 kB / 471.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.2935, allocations: 118.3 kB / 471.5 MB, free: 13.81 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.2937, allocations: 334 kB / 471.8 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004497/0.2941, allocations: 213.5 kB / 472 MB, free: 13.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000569/0.2947, allocations: 360.5 kB / 472.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.2958, allocations: 0.6164 MB / 473 MB, free: 12.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.2958, allocations: 11.94 kB / 473 MB, free: 12.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001752/0.2976, allocations: 0.9677 MB / 474 MB, free: 11.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.2976, allocations: 8.5 kB / 474 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-05/0.2977, allocations: 64 kB / 474.1 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004782/0.2982, allocations: 188.7 kB / 474.2 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004347/0.2986, allocations: 99.81 kB / 474.3 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003434/0.302, allocations: 2.636 MB / 477 MB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000469/0.3025, allocations: 31.97 kB / 477 MB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.727e-05/0.3026, allocations: 28 kB / 477 MB, free: 8.043 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.0004406/0.303, allocations: 269.8 kB / 477.3 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.3032, allocations: 190.8 kB / 477.5 MB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00191/0.3051, allocations: 0.9696 MB / 478.4 MB, free: 6.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.3051, allocations: 8 kB / 478.5 MB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3051, allocations: 0 / 478.5 MB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.3051, allocations: 7.984 kB / 478.5 MB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.3062, allocations: 0.8076 MB / 479.3 MB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.861e-05/0.3063, allocations: 67.98 kB / 479.3 MB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003255/0.3066, allocations: 63.89 kB / 479.4 MB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004453/0.307, allocations: 168.7 kB / 479.6 MB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.142e-05/0.3071, allocations: 27.92 kB / 479.6 MB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003319/0.3104, allocations: 2.62 MB / 482.2 MB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.3104, allocations: 4.031 kB / 482.2 MB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00217/0.3126, allocations: 1.184 MB / 483.4 MB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003833/0.313, allocations: 182.8 kB / 483.6 MB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001325/0.3131, allocations: 16.12 kB / 483.6 MB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004198/0.3135, allocations: 19.98 kB / 483.6 MB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.3136, allocations: 60.33 kB / 483.7 MB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.614e-05/0.3137, allocations: 20 kB / 483.7 MB, free: 1.176 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00114/0.3148, allocations: 0.8574 MB / 484.5 MB, free: 336 kB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3148, allocations: 0 / 484.5 MB, free: 336 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009342/0.3158, allocations: 391.2 kB / 484.9 MB, free: 15.94 MB / 398.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.003115/0.3189, allocations: 2.091 MB / 487 MB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.3206, allocations: 0.8664 MB / 487.9 MB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3206, allocations: 0.6875 kB / 487.9 MB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.3217, allocations: 0.6197 MB / 488.5 MB, free: 12.28 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000858/0.3225, allocations: 214.1 kB / 488.7 MB, free: 12.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01406/0.3366, allocations: 9.423 MB / 498.1 MB, free: 2.344 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006294/0.3372, allocations: 0.5915 MB / 498.7 MB, free: 1.715 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000526/0.3378, allocations: 187.2 kB / 498.9 MB, free: 1.527 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006778/0.3384, allocations: 0.5696 MB / 499.5 MB, free: 0.957 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3384, allocations: 0 / 499.5 MB, free: 0.957 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07507/0.4135, allocations: 31.23 MB / 0.5183 GB, free: 2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.27, allocations: 10.69 kB / 0.5183 GB, free: 1.996 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 15.87986423773691]