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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator") translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009706/0.0009707, allocations: 95.33 kB / 16.3 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009901/0.0009902, allocations: 175.8 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002133/0.0002133, allocations: 6.281 kB / 300.7 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08232/0.08254, allocations: 50.42 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.005221/0.0878, allocations: 6.095 MB / 357.2 MB, free: 5.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009186/0.09701, allocations: 9.398 MB / 366.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005668/0.0976, allocations: 39.69 kB / 366.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001171/0.09878, allocations: 0.5755 MB / 367.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002093/0.1009, allocations: 1.048 MB / 368.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009846/0.1019, allocations: 463.3 kB / 368.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003034/0.1049, allocations: 2.396 MB / 371.1 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003414/0.1053, allocations: 243.7 kB / 371.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004023/0.1057, allocations: 429.9 kB / 371.8 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004457/0.1061, allocations: 493 kB / 372.3 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.61e-05/0.1062, allocations: 32 kB / 372.3 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00124/0.1075, allocations: 0.722 MB / 373 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.1076, allocations: 151 kB / 373.2 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002071/0.1078, allocations: 312.8 kB / 373.5 MB, free: 5.289 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001111/0.1089, allocations: 1.371 MB / 374.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.1089, allocations: 0 / 374.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1089, allocations: 0 / 374.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.109, allocations: 0 / 374.9 MB, free: 3.914 MB / 302.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.002272/0.1112, allocations: 1.772 MB / 376.6 MB, free: 2.082 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.1113, allocations: 12.03 kB / 376.6 MB, free: 2.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.1115, allocations: 197.7 kB / 376.8 MB, free: 1.875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001679/0.1132, allocations: 1.26 MB / 378.1 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.172e-05/0.1132, allocations: 36.98 kB / 378.1 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.36e-05/0.1133, allocations: 40 kB / 378.2 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008498/0.1141, allocations: 0.5197 MB / 378.7 MB, free: 15.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.1142, allocations: 4 kB / 378.7 MB, free: 15.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/0.1142, allocations: 12 kB / 378.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.1142, allocations: 16 kB / 378.7 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008643/0.1151, allocations: 500 kB / 379.2 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002744/0.1179, allocations: 2.124 MB / 381.3 MB, free: 13.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008997/0.1188, allocations: 0.7286 MB / 382.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006854/0.1256, allocations: 6.552 MB / 388.6 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005216/0.1262, allocations: 318.1 kB / 388.9 MB, free: 4.598 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 2.204e-06/0.1262, allocations: 0 / 388.9 MB, free: 4.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.003297/0.1295, allocations: 2.17 MB / 391.1 MB, free: 2.336 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.1296, allocations: 55.84 kB / 391.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/0.1309, allocations: 1.28 MB / 392.4 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.925e-05/0.1309, allocations: 33.7 kB / 392.5 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005597/0.1315, allocations: 0.7111 MB / 393.2 MB, free: 244 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.1316, allocations: 205.1 kB / 393.4 MB, free: 36 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.744e-05/0.1317, allocations: 8 kB / 393.4 MB, free: 28 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1318, allocations: 338 kB / 393.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003992/0.1322, allocations: 205.5 kB / 393.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004907/0.1327, allocations: 376.3 kB / 394.3 MB, free: 15.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004452/0.1331, allocations: 250 kB / 394.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1332, allocations: 0 / 394.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001451/0.1346, allocations: 0.9301 MB / 395.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1346, allocations: 11.94 kB / 395.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.683e-05/0.1347, allocations: 59.92 kB / 395.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003914/0.1351, allocations: 159.3 kB / 395.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004462/0.1356, allocations: 119.8 kB / 395.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002587/0.1382, allocations: 2.336 MB / 398.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004389/0.1386, allocations: 32.03 kB / 398.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.91e-05/0.1387, allocations: 36 kB / 398.2 MB, free: 11 MB / 334.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 ($PRE.v.counter,v.counter,$whenCondition1,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003733/0.1391, allocations: 273.6 kB / 398.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.1393, allocations: 189.8 kB / 398.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001872/0.1411, allocations: 0.9138 MB / 399.6 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.1412, allocations: 4 kB / 399.6 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1412, allocations: 4 kB / 399.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-06/0.1412, allocations: 7.922 kB / 399.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009005/0.1421, allocations: 0.8708 MB / 400.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-05/0.1422, allocations: 51.98 kB / 400.5 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003152/0.1425, allocations: 71.89 kB / 400.6 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003461/0.1428, allocations: 146.6 kB / 400.7 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.881e-05/0.1429, allocations: 16 kB / 400.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002347/0.1452, allocations: 2.33 MB / 403.1 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1453, allocations: 0 / 403.1 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001782/0.147, allocations: 1.088 MB / 404.1 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003188/0.1474, allocations: 254.9 kB / 404.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.1475, allocations: 8 kB / 404.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003697/0.1479, allocations: 27.98 kB / 404.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.148, allocations: 48.36 kB / 404.5 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.447e-05/0.1481, allocations: 20 kB / 404.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000949/0.149, allocations: 0.8538 MB / 405.3 MB, free: 3.602 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.149, allocations: 0 / 405.3 MB, free: 3.602 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008902/0.1499, allocations: 371.8 kB / 405.7 MB, free: 3.238 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005851/0.1505, allocations: 412.2 kB / 406.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.152, allocations: 0.8682 MB / 407 MB, free: 1.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.152, allocations: 0 / 407 MB, free: 1.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009056/0.1529, allocations: 0.5904 MB / 407.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006651/0.1536, allocations: 206.6 kB / 407.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003215/0.1568, allocations: 2.748 MB / 410.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006155/0.1575, allocations: 1.197 MB / 411.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005672/0.158, allocations: 187.2 kB / 411.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.1582, allocations: 83.44 kB / 412 MB, free: 12.83 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1582, allocations: 0 / 412 MB, free: 12.83 MB / 350.1 MB Notification: Performance of Templates: time 0.02139/0.1796, allocations: 12.25 MB / 424.2 MB, free: 0.6367 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches