Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance") translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.00124, allocations: 96.23 kB / 16.3 MB, free: 5.586 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.001324/0.001324, allocations: 184.5 kB / 17.2 MB, free: 5.52 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.386/1.386, allocations: 223.2 MB / 241.1 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003077, allocations: 11.94 kB / 300.7 MB, free: 6.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1309, allocations: 50.42 MB / 351.1 MB, free: 3.812 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.003058/0.134, allocations: 2.325 MB / 353.5 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.1351, allocations: 0.6587 MB / 354.1 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.1353, allocations: 4 kB / 354.1 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.005e-05/0.1354, allocations: 43.67 kB / 354.2 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002229/0.1356, allocations: 103.7 kB / 354.3 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002382/0.1358, allocations: 67.92 kB / 354.3 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.1362, allocations: 255.9 kB / 354.6 MB, free: 352 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002597/0.1364, allocations: 116.8 kB / 354.7 MB, free: 220 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.1366, allocations: 123.5 kB / 354.8 MB, free: 96 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.1368, allocations: 131.4 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.593e-05/0.1369, allocations: 16 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.23e-05/0.1369, allocations: 16 kB / 355 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.314e-05/0.137, allocations: 47.83 kB / 355 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.579e-05/0.137, allocations: 85.52 kB / 355.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002765/0.1373, allocations: 283.4 kB / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1373, allocations: 3.938 kB / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1373, allocations: 0 / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1374, allocations: 0 / 355.4 MB, free: 15.52 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009234/0.1383, allocations: 0.573 MB / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.1383, allocations: 16.03 kB / 356 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.506e-05/0.1384, allocations: 31.62 kB / 356 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003262/0.1388, allocations: 250.5 kB / 356.3 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.904e-05/0.1388, allocations: 24.66 kB / 356.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.375e-05/0.1389, allocations: 32 kB / 356.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005372/0.1394, allocations: 286 kB / 356.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.1394, allocations: 3.984 kB / 356.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.1395, allocations: 8 kB / 356.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.1395, allocations: 15.95 kB / 356.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005009/0.14, allocations: 218.5 kB / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.1416, allocations: 1.042 MB / 357.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003086/0.1419, allocations: 162.5 kB / 358 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.1419, allocations: 0 / 358 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.142, allocations: 34.56 kB / 358.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 2.205e-06/0.142, allocations: 8 kB / 358.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005754/0.1426, allocations: 252.3 kB / 358.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.1426, allocations: 51.41 kB / 358.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001918/0.1428, allocations: 223.1 kB / 358.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.1428, allocations: 33.69 kB / 358.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.1429, allocations: 192 kB / 358.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.645e-05/0.143, allocations: 74.91 kB / 358.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.09e-05/0.143, allocations: 4 kB / 358.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1432, allocations: 334.8 kB / 359.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/0.1433, allocations: 72.53 kB / 359.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002219/0.1436, allocations: 141.6 kB / 359.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/0.1438, allocations: 95.92 kB / 359.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.1438, allocations: 0 / 359.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004849/0.1443, allocations: 273.2 kB / 359.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.1443, allocations: 11.98 kB / 359.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.1443, allocations: 0 / 359.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.1444, allocations: 4 kB / 359.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003288/0.1447, allocations: 76.09 kB / 359.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.1447, allocations: 7.984 kB / 359.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001583/0.1449, allocations: 35.64 kB / 359.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.739e-05/0.1449, allocations: 12 kB / 359.9 MB, free: 10.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001344/0.145, allocations: 141.7 kB / 360.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.152e-05/0.1451, allocations: 23.72 kB / 360.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004618/0.1456, allocations: 230.1 kB / 360.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1456, allocations: 0 / 360.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1456, allocations: 0 / 360.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1456, allocations: 0 / 360.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003919/0.146, allocations: 337.3 kB / 360.6 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.146, allocations: 0 / 360.6 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002913/0.1463, allocations: 71.89 kB / 360.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.1463, allocations: 0 / 360.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.1463, allocations: 8 kB / 360.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1463, allocations: 0 / 360.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1464, allocations: 0 / 360.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006453/0.147, allocations: 388.5 kB / 361.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.753e-05/0.1471, allocations: 104.8 kB / 361.2 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.1471, allocations: 4.062 kB / 361.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001772/0.1473, allocations: 19.98 kB / 361.2 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.55e-05/0.1474, allocations: 23.86 kB / 361.3 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.1474, allocations: 4 kB / 361.3 MB, free: 9.293 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001287/0.1475, allocations: 156.7 kB / 361.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1475, allocations: 0 / 361.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004338/0.148, allocations: 79.69 kB / 361.5 MB, free: 9.062 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001341/0.1481, allocations: 95.25 kB / 361.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004171/0.1485, allocations: 195.8 kB / 361.8 MB, free: 8.766 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.1485, allocations: 0 / 361.8 MB, free: 8.766 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.1487, allocations: 84.28 kB / 361.9 MB, free: 8.684 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.149, allocations: 35.77 kB / 361.9 MB, free: 8.652 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.1504, allocations: 1.037 MB / 362.9 MB, free: 7.594 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.1507, allocations: 0.7755 MB / 363.7 MB, free: 6.793 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.388e-05/0.1508, allocations: 21.94 kB / 363.7 MB, free: 6.773 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.14e-05/0.1509, allocations: 23.42 kB / 363.7 MB, free: 6.75 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1509, allocations: 4 kB / 363.7 MB, free: 6.746 MB / 302.1 MB Notification: Performance of Templates: time 0.0048/0.1557, allocations: 1.839 MB / 365.6 MB, free: 4.922 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches