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.0008116/0.0008116, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001271/0.001271, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8534/0.8534, allocations: 173.3 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 1.793e-06/1.793e-06, allocations: 4 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.175e-05/1.355e-05, allocations: 4.672 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.004516/0.004529, allocations: 6.453 MB / 324.9 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007739/0.01227, allocations: 9.304 MB / 334.2 MB, free: 6.539 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006725/0.01294, allocations: 126.6 kB / 334.3 MB, free: 6.414 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.014, allocations: 0.6385 MB / 334.9 MB, free: 5.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001898/0.0159, allocations: 1.248 MB / 336.2 MB, free: 4.512 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.01697, allocations: 0.6874 MB / 336.9 MB, free: 3.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002204/0.01917, allocations: 2.617 MB / 339.5 MB, free: 1.195 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002954/0.01947, allocations: 172.3 kB / 339.7 MB, free: 1.008 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006925/0.02016, allocations: 0.7169 MB / 340.4 MB, free: 292 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003327/0.0205, allocations: 378.5 kB / 340.8 MB, free: 15.91 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.249e-05/0.02056, allocations: 56 kB / 340.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008882/0.02145, allocations: 0.6907 MB / 341.5 MB, free: 15.17 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.02155, allocations: 186.8 kB / 341.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002958/0.02185, allocations: 382.8 kB / 342.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001505/0.02335, allocations: 1.997 MB / 344.1 MB, free: 12.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.02336, allocations: 0 / 344.1 MB, free: 12.61 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.02336, allocations: 0 / 344.1 MB, free: 12.61 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.517e-05/0.02338, allocations: 0 / 344.1 MB, free: 12.61 MB / 314.7 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.001802/0.02519, allocations: 1.951 MB / 346 MB, free: 10.62 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.02522, allocations: 8.922 kB / 346 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.857e-05/0.0253, allocations: 94.64 kB / 346.1 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.02548, allocations: 211.6 kB / 346.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.02674, allocations: 1.239 MB / 347.5 MB, free: 9.004 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.02676, allocations: 29.38 kB / 347.6 MB, free: 8.973 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.098e-05/0.02683, allocations: 52.12 kB / 347.6 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006034/0.02743, allocations: 0.5158 MB / 348.1 MB, free: 8.398 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.02744, allocations: 0 / 348.1 MB, free: 8.398 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.976e-05/0.02747, allocations: 16 kB / 348.2 MB, free: 8.383 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.02748, allocations: 15.98 kB / 348.2 MB, free: 8.367 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005672/0.02805, allocations: 472.1 kB / 348.6 MB, free: 7.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.03002, allocations: 1.939 MB / 350.6 MB, free: 5.891 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005864/0.0306, allocations: 0.5031 MB / 351.1 MB, free: 5.375 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004195/0.03102, allocations: 465.4 kB / 351.5 MB, free: 4.922 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003311/0.03433, allocations: 2.541 MB / 354.1 MB, free: 2.359 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003494/0.03468, allocations: 298.1 kB / 354.4 MB, free: 2.051 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 1.813e-06/0.03468, allocations: 0 / 354.4 MB, free: 2.051 MB / 314.7 MB Notification: Performance of matching and sorting (n=59): time 0.002139/0.03682, allocations: 1.901 MB / 356.3 MB, free: 116 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.03686, allocations: 67.83 kB / 356.3 MB, free: 36 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009588/0.03782, allocations: 1.304 MB / 357.6 MB, free: 14.73 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.03785, allocations: 33.7 kB / 357.7 MB, free: 14.7 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003829/0.03823, allocations: 0.7196 MB / 358.4 MB, free: 13.97 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.03834, allocations: 206.2 kB / 358.6 MB, free: 13.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.03845, allocations: 126.3 kB / 358.7 MB, free: 13.64 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.065e-05/0.03853, allocations: 330 kB / 359 MB, free: 13.31 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002441/0.03878, allocations: 201.5 kB / 359.2 MB, free: 13.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003093/0.03909, allocations: 370.8 kB / 359.6 MB, free: 12.69 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006045/0.03969, allocations: 0.6038 MB / 360.2 MB, free: 12.01 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.03969, allocations: 0 / 360.2 MB, free: 12.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0009335/0.04063, allocations: 0.9134 MB / 361.1 MB, free: 11.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.04064, allocations: 15.92 kB / 361.1 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.732e-05/0.04069, allocations: 59.94 kB / 361.2 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002735/0.04096, allocations: 160.2 kB / 361.3 MB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.0412, allocations: 111.8 kB / 361.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001803/0.043, allocations: 2.385 MB / 363.8 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/0.04324, allocations: 32.03 kB / 363.9 MB, free: 8.223 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.915e-05/0.04328, allocations: 32 kB / 363.9 MB, free: 8.191 MB / 330.7 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.0002581/0.04354, allocations: 269.7 kB / 364.2 MB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.04368, allocations: 194.8 kB / 364.4 MB, free: 7.727 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.04476, allocations: 0.8819 MB / 365.2 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.04476, allocations: 8 kB / 365.2 MB, free: 6.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.04477, allocations: 0 / 365.2 MB, free: 6.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.04477, allocations: 7.984 kB / 365.2 MB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000609/0.04538, allocations: 0.7804 MB / 366 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.104e-05/0.04542, allocations: 56 kB / 366.1 MB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.04557, allocations: 63.95 kB / 366.1 MB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002242/0.0458, allocations: 152.7 kB / 366.3 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.04582, allocations: 16 kB / 366.3 MB, free: 5.707 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001755/0.04758, allocations: 2.363 MB / 368.7 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.04758, allocations: 0 / 368.7 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.04867, allocations: 1.069 MB / 369.7 MB, free: 2.137 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001729/0.04884, allocations: 174.8 kB / 369.9 MB, free: 1.965 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.949e-05/0.04891, allocations: 16 kB / 369.9 MB, free: 1.949 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.04909, allocations: 19.97 kB / 369.9 MB, free: 1.93 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.596e-05/0.04917, allocations: 48.42 kB / 370 MB, free: 1.883 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-05/0.0492, allocations: 24 kB / 370 MB, free: 1.859 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000878/0.05008, allocations: 0.8617 MB / 370.9 MB, free: 1.008 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05008, allocations: 0 / 370.9 MB, free: 1.008 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005528/0.05063, allocations: 371.3 kB / 371.2 MB, free: 0.6445 MB / 330.7 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.001715/0.05235, allocations: 2.001 MB / 373.2 MB, free: 14.61 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009164/0.05326, allocations: 0.802 MB / 374 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.05327, allocations: 0 / 374 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005065/0.05377, allocations: 0.5474 MB / 374.6 MB, free: 13.22 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.05427, allocations: 206.2 kB / 374.8 MB, free: 13.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0085/0.06277, allocations: 9.236 MB / 384 MB, free: 3.445 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.06311, allocations: 0.5837 MB / 384.6 MB, free: 2.824 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003935/0.06351, allocations: 187.2 kB / 384.8 MB, free: 2.637 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.06389, allocations: 0.5706 MB / 385.4 MB, free: 2.066 MB / 346.7 MB Notification: Performance of SimCode: time 4.61e-07/0.06389, allocations: 4 kB / 385.4 MB, free: 2.062 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04509/0.109, allocations: 30.57 MB / 415.9 MB, free: 3.742 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.938/8.047, allocations: 9.625 kB / 416 MB, free: 3.734 MB / 378.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins/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: 9.970753745175898]