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.000834/0.000834, allocations: 79.7 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.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.0008788/0.0008788, allocations: 174.3 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8815/0.8815, allocations: 177.1 MB / 204.3 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.633e-06/1.633e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.502e-05/1.665e-05, allocations: 6.219 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.004824/0.004841, allocations: 6.485 MB / 331 MB, free: 9.445 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007674/0.01252, allocations: 9.332 MB / 340.4 MB, free: 68 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008174/0.01333, allocations: 118.7 kB / 340.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001127/0.01446, allocations: 0.6577 MB / 341.2 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002258/0.01672, allocations: 1.252 MB / 342.4 MB, free: 14.03 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.01787, allocations: 0.6718 MB / 343.1 MB, free: 13.35 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002276/0.02015, allocations: 2.648 MB / 345.7 MB, free: 10.7 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002664/0.02041, allocations: 176.3 kB / 345.9 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005718/0.02098, allocations: 0.713 MB / 346.6 MB, free: 9.785 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003116/0.0213, allocations: 374.6 kB / 347 MB, free: 9.418 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.11e-05/0.02136, allocations: 60 kB / 347 MB, free: 9.359 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009203/0.02228, allocations: 0.6946 MB / 347.7 MB, free: 8.664 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.905e-05/0.02238, allocations: 186.8 kB / 347.9 MB, free: 8.48 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002498/0.02263, allocations: 386.8 kB / 348.3 MB, free: 8.102 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001479/0.02411, allocations: 1.997 MB / 350.3 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.02411, allocations: 0 / 350.3 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.02411, allocations: 0 / 350.3 MB, free: 6.098 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.02413, allocations: 0 / 350.3 MB, free: 6.098 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.00172/0.02585, allocations: 1.951 MB / 352.2 MB, free: 4.109 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.02589, allocations: 8.031 kB / 352.2 MB, free: 4.102 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.241e-05/0.02596, allocations: 90.7 kB / 352.3 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.0261, allocations: 215.6 kB / 352.5 MB, free: 3.793 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00126/0.02736, allocations: 1.235 MB / 353.8 MB, free: 2.504 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.02738, allocations: 33.38 kB / 353.8 MB, free: 2.469 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.957e-05/0.02744, allocations: 52.08 kB / 353.9 MB, free: 2.418 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006092/0.02805, allocations: 0.5158 MB / 354.4 MB, free: 1.898 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.02806, allocations: 0 / 354.4 MB, free: 1.898 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.0281, allocations: 20 kB / 354.4 MB, free: 1.879 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.02811, allocations: 19.98 kB / 354.4 MB, free: 1.859 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005552/0.02867, allocations: 472.1 kB / 354.9 MB, free: 1.402 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.0306, allocations: 1.946 MB / 356.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005533/0.03115, allocations: 0.5031 MB / 357.3 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004414/0.03159, allocations: 469.3 kB / 357.8 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002812/0.0344, allocations: 2.261 MB / 360 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003716/0.03477, allocations: 318 kB / 360.4 MB, free: 11.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 2.475e-06/0.03478, allocations: 0 / 360.4 MB, free: 11.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=65): time 0.002956/0.03773, allocations: 2.282 MB / 362.6 MB, free: 9.465 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.03778, allocations: 59.91 kB / 362.7 MB, free: 9.395 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000955/0.03873, allocations: 1.288 MB / 364 MB, free: 8.109 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.03876, allocations: 37.7 kB / 364 MB, free: 8.066 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003829/0.03914, allocations: 0.7041 MB / 364.7 MB, free: 7.359 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.03926, allocations: 226 kB / 364.9 MB, free: 7.137 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.03938, allocations: 122.3 kB / 365.1 MB, free: 7.012 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.961e-05/0.03946, allocations: 334 kB / 365.4 MB, free: 6.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002628/0.03972, allocations: 217.5 kB / 365.6 MB, free: 6.469 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.04004, allocations: 356.5 kB / 366 MB, free: 6.066 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006522/0.04069, allocations: 0.6126 MB / 366.6 MB, free: 5.402 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.04069, allocations: 4 kB / 366.6 MB, free: 5.398 MB / 330.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.0009871/0.04168, allocations: 0.9757 MB / 367.5 MB, free: 4.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.0417, allocations: 8 kB / 367.6 MB, free: 4.402 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-05/0.04175, allocations: 67.98 kB / 367.6 MB, free: 4.336 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003141/0.04206, allocations: 176.1 kB / 367.8 MB, free: 4.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.0423, allocations: 111.8 kB / 367.9 MB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.0444, allocations: 2.632 MB / 370.5 MB, free: 1.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002468/0.04464, allocations: 31.95 kB / 370.6 MB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/0.04469, allocations: 32 kB / 370.6 MB, free: 1.254 MB / 330.7 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.0002854/0.04497, allocations: 261.8 kB / 370.8 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.04509, allocations: 190.9 kB / 371 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001169/0.04626, allocations: 0.9625 MB / 372 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.04626, allocations: 8 kB / 372 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.04627, allocations: 4 kB / 372 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.04627, allocations: 3.984 kB / 372 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006552/0.04693, allocations: 0.8152 MB / 372.8 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.391e-05/0.04697, allocations: 56 kB / 372.9 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.04714, allocations: 83.78 kB / 373 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002712/0.04741, allocations: 172.7 kB / 373.1 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.04744, allocations: 20 kB / 373.2 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002065/0.0495, allocations: 2.621 MB / 375.8 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.0495, allocations: 0 / 375.8 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001296/0.0508, allocations: 1.177 MB / 377 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000243/0.05104, allocations: 190.8 kB / 377.1 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.839e-05/0.05112, allocations: 12 kB / 377.1 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/0.05131, allocations: 23.97 kB / 377.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.05142, allocations: 52.34 kB / 377.2 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-05/0.05145, allocations: 24 kB / 377.2 MB, free: 10.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007624/0.05221, allocations: 0.8535 MB / 378.1 MB, free: 9.543 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.05221, allocations: 0 / 378.1 MB, free: 9.543 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000707/0.05292, allocations: 391.2 kB / 378.5 MB, free: 9.16 MB / 346.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 (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.001972/0.05489, allocations: 2.109 MB / 380.6 MB, free: 7.012 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.05598, allocations: 0.8792 MB / 381.5 MB, free: 6.109 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.05599, allocations: 0 / 381.5 MB, free: 6.109 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006059/0.05659, allocations: 0.6125 MB / 382.1 MB, free: 5.473 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005691/0.05716, allocations: 206.2 kB / 382.3 MB, free: 5.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008958/0.06612, allocations: 9.354 MB / 391.6 MB, free: 11.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.06649, allocations: 0.5916 MB / 392.2 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003398/0.06683, allocations: 183.2 kB / 392.4 MB, free: 10.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003975/0.06722, allocations: 0.5706 MB / 393 MB, free: 10.22 MB / 362.7 MB Notification: Performance of SimCode: time 1.563e-06/0.06722, allocations: 0 / 393 MB, free: 10.22 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04844/0.1157, allocations: 31.39 MB / 424.4 MB, free: 11.1 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.868/7.984, allocations: 11.94 kB / 424.4 MB, free: 11.09 MB / 394.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins/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: 9.9303355878219]