Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009744/0.0009746, allocations: 99.14 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 191.1 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.7 MB / 246.4 MB, free: 9.816 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000256/0.0002562, allocations: 8 kB / 307.1 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.119, allocations: 51.53 MB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.003372/0.1224, allocations: 2.455 MB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.124, allocations: 0.6781 MB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000306/0.1243, allocations: 4 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.1245, allocations: 51.61 kB / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002498/0.1248, allocations: 67.39 kB / 361.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.1251, allocations: 75.92 kB / 362 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004576/0.1256, allocations: 339 kB / 362.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003112/0.1259, allocations: 132.7 kB / 362.4 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000339/0.1263, allocations: 119.5 kB / 362.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002149/0.1265, allocations: 131.4 kB / 362.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.011e-05/0.1266, allocations: 20 kB / 362.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.121e-05/0.1266, allocations: 16 kB / 362.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.911e-05/0.1267, allocations: 47.83 kB / 362.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.05e-05/0.1268, allocations: 85.52 kB / 362.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002631/0.127, allocations: 279.4 kB / 363.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.127, allocations: 0 / 363.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1271, allocations: 0 / 363.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.946e-06/0.1271, allocations: 0 / 363.1 MB, free: 8.906 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.0009115/0.128, allocations: 0.5691 MB / 363.7 MB, free: 8.289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.128, allocations: 8.031 kB / 363.7 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.854e-05/0.1281, allocations: 31.62 kB / 363.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.1285, allocations: 266.4 kB / 364 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.1285, allocations: 24.66 kB / 364 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.409e-05/0.1286, allocations: 32 kB / 364 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00058/0.1292, allocations: 293.9 kB / 364.3 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1292, allocations: 0 / 364.3 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.762e-05/0.1292, allocations: 12 kB / 364.3 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.759e-06/0.1293, allocations: 4 kB / 364.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004675/0.1297, allocations: 226.5 kB / 364.6 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.1314, allocations: 1.034 MB / 365.6 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003163/0.1317, allocations: 162.6 kB / 365.8 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002682/0.132, allocations: 133.5 kB / 365.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.132, allocations: 3.938 kB / 365.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.132, allocations: 46.86 kB / 365.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.412e-06/0.132, allocations: 0 / 365.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005651/0.1326, allocations: 243.6 kB / 366.2 MB, free: 5.656 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.1327, allocations: 55.41 kB / 366.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.1329, allocations: 211.1 kB / 366.4 MB, free: 5.375 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.1329, allocations: 29.7 kB / 366.5 MB, free: 5.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.133, allocations: 196 kB / 366.7 MB, free: 5.145 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.296e-05/0.1331, allocations: 66.92 kB / 366.7 MB, free: 5.078 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/0.1331, allocations: 4 kB / 366.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1332, allocations: 334.8 kB / 367.1 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.1334, allocations: 72.52 kB / 367.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.1336, allocations: 155.2 kB / 367.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001892/0.1338, allocations: 87.97 kB / 367.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.1339, allocations: 4 kB / 367.4 MB, free: 4.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004973/0.1344, allocations: 277.2 kB / 367.6 MB, free: 4.117 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.1344, allocations: 4 kB / 367.6 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.1344, allocations: 7.953 kB / 367.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.1344, allocations: 4 kB / 367.7 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003001/0.1347, allocations: 71.89 kB / 367.7 MB, free: 4.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.1348, allocations: 4 kB / 367.7 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.1349, allocations: 39.8 kB / 367.8 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.1349, allocations: 16 kB / 367.8 MB, free: 3.973 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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.0001309/0.1351, allocations: 137.8 kB / 367.9 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.198e-05/0.1351, allocations: 27.72 kB / 367.9 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004151/0.1356, allocations: 210.9 kB / 368.1 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1356, allocations: 7.953 kB / 368.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1356, allocations: 4 kB / 368.2 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1356, allocations: 0 / 368.2 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007861/0.1364, allocations: 0.6131 MB / 368.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1364, allocations: 0 / 368.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002772/0.1367, allocations: 59.91 kB / 368.8 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.1367, allocations: 4 kB / 368.8 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.1367, allocations: 3.953 kB / 368.8 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1367, allocations: 4 kB / 368.8 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.1367, allocations: 0 / 368.8 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005736/0.1373, allocations: 397.2 kB / 369.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.385e-05/0.1374, allocations: 100.9 kB / 369.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.455e-05/0.1374, allocations: 7.891 kB / 369.3 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.1376, allocations: 19.98 kB / 369.4 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.055e-05/0.1377, allocations: 19.97 kB / 369.4 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.1377, allocations: 4 kB / 369.4 MB, free: 2.254 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001278/0.1378, allocations: 164.6 kB / 369.5 MB, free: 2.094 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1378, allocations: 0 / 369.5 MB, free: 2.094 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003826/0.1382, allocations: 75.69 kB / 369.6 MB, free: 2.02 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.000141/0.1384, allocations: 103.2 kB / 369.7 MB, free: 1.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004225/0.1388, allocations: 187 kB / 369.9 MB, free: 1.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1388, allocations: 0 / 369.9 MB, free: 1.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001767/0.139, allocations: 95.78 kB / 370 MB, free: 1.637 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.1394, allocations: 29.27 kB / 370 MB, free: 1.609 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.1409, allocations: 1.051 MB / 371.1 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1842/0.3251, allocations: 0.7619 MB / 371.8 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000173/0.3253, allocations: 23.53 kB / 371.9 MB, free: 18.6 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.461e-05/0.3254, allocations: 19.59 kB / 371.9 MB, free: 18.59 MB / 302.1 MB Notification: Performance of SimCode: time 1.954e-06/0.3254, allocations: 1.781 kB / 371.9 MB, free: 18.59 MB / 302.1 MB Notification: Performance of Templates: time 0.005838/0.3312, allocations: 1.829 MB / 373.7 MB, free: 18.56 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches