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.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.0007901/0.0007901, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003499/0.003499, allocations: 166.4 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8499/0.8499, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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.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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.041e-05/2.239e-05, allocations: 2.281 kB / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.1282/0.1282, allocations: 6.344 MB / 304.8 MB, free: 11.85 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008907/0.1371, allocations: 9.005 MB / 313.8 MB, free: 6.387 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001547/0.1386, allocations: 124 kB / 313.9 MB, free: 6.297 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.1403, allocations: 0.6366 MB / 314.5 MB, free: 5.969 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003844/0.1441, allocations: 1.227 MB / 315.8 MB, free: 5.184 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001738/0.1459, allocations: 0.6736 MB / 316.4 MB, free: 4.852 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003343/0.1492, allocations: 2.576 MB / 319 MB, free: 3.789 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003464/0.1495, allocations: 180.7 kB / 319.2 MB, free: 3.672 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008219/0.1504, allocations: 0.6781 MB / 319.9 MB, free: 3.473 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004165/0.1508, allocations: 368.2 kB / 320.2 MB, free: 3.359 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.168e-05/0.1509, allocations: 54.44 kB / 320.3 MB, free: 3.359 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001535/0.1524, allocations: 0.6605 MB / 320.9 MB, free: 3.238 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001117/0.1525, allocations: 190.3 kB / 321.1 MB, free: 3.102 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003536/0.1529, allocations: 377.7 kB / 321.5 MB, free: 2.973 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001763/0.1546, allocations: 1.993 MB / 323.5 MB, free: 2.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1546, allocations: 1.188 kB / 323.5 MB, free: 2.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1546, allocations: 0 / 323.5 MB, free: 2.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.215e-05/0.1547, allocations: 4 kB / 323.5 MB, free: 2.066 MB / 282.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.00193/0.1566, allocations: 1.941 MB / 325.4 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.1566, allocations: 18.05 kB / 325.5 MB, free: 0.582 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.62e-05/0.1567, allocations: 87.92 kB / 325.5 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.1569, allocations: 207 kB / 325.7 MB, free: 408 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.1582, allocations: 1.235 MB / 327 MB, free: 15.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.102e-05/0.1582, allocations: 39.38 kB / 327 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.657e-05/0.1583, allocations: 47.95 kB / 327.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006529/0.159, allocations: 0.5119 MB / 327.6 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.159, allocations: 0 / 327.6 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.413e-05/0.159, allocations: 23.7 kB / 327.6 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.159, allocations: 15.56 kB / 327.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006524/0.1597, allocations: 472.1 kB / 328.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002243/0.1619, allocations: 1.937 MB / 330 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006132/0.1625, allocations: 0.5091 MB / 330.5 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004664/0.163, allocations: 466.9 kB / 331 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004047/0.1671, allocations: 2.533 MB / 333.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003859/0.1674, allocations: 294.1 kB / 333.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 1.903e-06/0.1674, allocations: 0 / 333.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=59): time 0.002593/0.17, allocations: 1.901 MB / 335.7 MB, free: 8.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.1701, allocations: 55.91 kB / 335.7 MB, free: 8.914 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.1711, allocations: 1.308 MB / 337.1 MB, free: 7.609 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.1712, allocations: 33.7 kB / 337.1 MB, free: 7.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004022/0.1716, allocations: 0.7118 MB / 337.8 MB, free: 6.855 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.1717, allocations: 214.2 kB / 338 MB, free: 6.645 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.1718, allocations: 118.3 kB / 338.1 MB, free: 6.523 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.913e-05/0.1719, allocations: 330 kB / 338.4 MB, free: 6.195 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.1721, allocations: 201.6 kB / 338.6 MB, free: 6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003088/0.1724, allocations: 363.8 kB / 339 MB, free: 5.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.1738, allocations: 1.132 MB / 340.1 MB, free: 4.371 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1738, allocations: 4.625 kB / 340.1 MB, free: 4.367 MB / 298.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001001/0.1748, allocations: 0.9249 MB / 341.1 MB, free: 3.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1748, allocations: 8 kB / 341.1 MB, free: 3.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.271e-05/0.1749, allocations: 56.62 kB / 341.1 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002728/0.1752, allocations: 161.3 kB / 341.3 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002542/0.1754, allocations: 111.8 kB / 341.4 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002024/0.1774, allocations: 2.397 MB / 343.8 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005128/0.1779, allocations: 23.98 kB / 343.8 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.854e-05/0.178, allocations: 39.94 kB / 343.9 MB, free: 0.5312 MB / 298.7 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.000428/0.1784, allocations: 278.2 kB / 344.1 MB, free: 256 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.1786, allocations: 190.8 kB / 344.3 MB, free: 64 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00112/0.1797, allocations: 0.8764 MB / 345.2 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1797, allocations: 8 kB / 345.2 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.1797, allocations: 0 / 345.2 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1797, allocations: 7.984 kB / 345.2 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007945/0.1805, allocations: 0.7774 MB / 346 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.906e-05/0.1805, allocations: 55.94 kB / 346 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001668/0.1807, allocations: 59.95 kB / 346.1 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002638/0.181, allocations: 147.7 kB / 346.2 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.252e-05/0.181, allocations: 20 kB / 346.3 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001793/0.1828, allocations: 2.363 MB / 348.6 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.1828, allocations: 4 kB / 348.6 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.184, allocations: 1.069 MB / 349.7 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002973/0.1843, allocations: 178.9 kB / 349.9 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.779e-05/0.1844, allocations: 8 kB / 349.9 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.1846, allocations: 17.8 kB / 349.9 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.1847, allocations: 56.41 kB / 349.9 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.1847, allocations: 16 kB / 350 MB, free: 10.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008032/0.1855, allocations: 0.8617 MB / 350.8 MB, free: 9.371 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1855, allocations: 4 kB / 350.8 MB, free: 9.367 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007965/0.1863, allocations: 375.2 kB / 351.2 MB, free: 9 MB / 314.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.001949/0.1883, allocations: 2.008 MB / 353.2 MB, free: 6.953 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.1893, allocations: 0.8173 MB / 354 MB, free: 6.113 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1893, allocations: 0 / 354 MB, free: 6.113 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005439/0.1898, allocations: 0.5398 MB / 354.6 MB, free: 5.547 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005488/0.1904, allocations: 191.2 kB / 354.7 MB, free: 5.367 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009276/0.1997, allocations: 9.188 MB / 363.9 MB, free: 11.85 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.2, allocations: 0.5837 MB / 364.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000325/0.2004, allocations: 191.1 kB / 364.7 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003993/0.2008, allocations: 0.5706 MB / 365.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of SimCode: time 1.072e-06/0.2008, allocations: 4 kB / 365.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04902/0.2498, allocations: 30.49 MB / 395.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.167/8.417, allocations: 7.875 kB / 395.8 MB, free: 11.85 MB / 362.7 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 10.297467375174165]