Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001096/0.001096, allocations: 110.6 kB / 17.33 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 209.8 kB / 18.27 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.53/1.53, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 63.42 kB / 306.4 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1315, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.005645/0.1372, allocations: 2.952 MB / 359.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001979/0.1392, allocations: 0.6972 MB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002471/0.1395, allocations: 11.94 kB / 360.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002748/0.1398, allocations: 47.61 kB / 360.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000262/0.1401, allocations: 75.45 kB / 360.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003663/0.1405, allocations: 79.86 kB / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005471/0.141, allocations: 370.5 kB / 361.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003884/0.1414, allocations: 153.3 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003594/0.1418, allocations: 147.5 kB / 361.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002468/0.1421, allocations: 151.3 kB / 361.6 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.602e-05/0.1422, allocations: 32 kB / 361.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.886e-05/0.1422, allocations: 32 kB / 361.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.026e-05/0.1423, allocations: 75.77 kB / 361.8 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002093/0.1426, allocations: 183 kB / 362 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005034/0.1431, allocations: 366.9 kB / 362.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1431, allocations: 0 / 362.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.1431, allocations: 0 / 362.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.1431, allocations: 0 / 362.3 MB, free: 9.059 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.001298/0.1444, allocations: 0.6121 MB / 362.9 MB, free: 8.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.1445, allocations: 12.03 kB / 362.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.1446, allocations: 40.47 kB / 363 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000435/0.1451, allocations: 263.7 kB / 363.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.1451, allocations: 21.03 kB / 363.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.389e-05/0.1452, allocations: 36.38 kB / 363.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007313/0.1459, allocations: 274.4 kB / 363.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.146, allocations: 0 / 363.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.378e-05/0.146, allocations: 16 kB / 363.6 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.146, allocations: 8 kB / 363.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006651/0.1467, allocations: 202.5 kB / 363.8 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002185/0.1489, allocations: 0.9868 MB / 364.8 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004728/0.1494, allocations: 166.6 kB / 364.9 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002814/0.1497, allocations: 80.81 kB / 365 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.1497, allocations: 0 / 365 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/0.1498, allocations: 34.56 kB / 365 MB, free: 6.141 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.753e-06/0.1498, allocations: 3.938 kB / 365 MB, free: 6.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008339/0.1507, allocations: 213.6 kB / 365.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.1507, allocations: 55.41 kB / 365.3 MB, free: 5.855 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/0.151, allocations: 210.8 kB / 365.5 MB, free: 5.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.1511, allocations: 25.7 kB / 365.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.1512, allocations: 188 kB / 365.7 MB, free: 5.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.82e-05/0.1513, allocations: 67.09 kB / 365.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.1515, allocations: 49.61 kB / 365.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.1517, allocations: 334.8 kB / 366.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002457/0.1519, allocations: 59.97 kB / 366.2 MB, free: 4.906 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003098/0.1522, allocations: 117.8 kB / 366.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005412/0.1528, allocations: 193.8 kB / 366.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.1528, allocations: 0 / 366.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007651/0.1536, allocations: 245.1 kB / 366.8 MB, free: 4.312 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.1536, allocations: 4 kB / 366.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.1536, allocations: 4 kB / 366.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.1537, allocations: 0 / 366.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000417/0.1541, allocations: 59.95 kB / 366.8 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/0.1541, allocations: 7.938 kB / 366.8 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.1544, allocations: 27.69 kB / 366.9 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.94e-05/0.1544, allocations: 15.98 kB / 366.9 MB, free: 4.195 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002312/0.1547, allocations: 145.8 kB / 367 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.23e-05/0.1547, allocations: 19.75 kB / 367 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006149/0.1554, allocations: 191.4 kB / 367.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1554, allocations: 0 / 367.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.84e-06/0.1554, allocations: 0 / 367.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1554, allocations: 0 / 367.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005582/0.156, allocations: 329.3 kB / 367.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.156, allocations: 4 kB / 367.6 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004658/0.1565, allocations: 51.91 kB / 367.6 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.1565, allocations: 0 / 367.6 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-05/0.1565, allocations: 8 kB / 367.6 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1565, allocations: 3.938 kB / 367.6 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.1566, allocations: 0 / 367.6 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000897/0.1575, allocations: 354.6 kB / 368 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.1576, allocations: 92.91 kB / 368.1 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.225e-05/0.1576, allocations: 8.062 kB / 368.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.1579, allocations: 11.98 kB / 368.1 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.251e-05/0.158, allocations: 15.92 kB / 368.1 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.1581, allocations: 4 kB / 368.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00019/0.1583, allocations: 148.6 kB / 368.2 MB, free: 2.738 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1583, allocations: 4 kB / 368.2 MB, free: 2.734 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006099/0.1589, allocations: 75.69 kB / 368.3 MB, free: 2.66 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000168/0.1591, allocations: 103.3 kB / 368.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000651/0.1597, allocations: 163.8 kB / 368.6 MB, free: 2.391 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1598, allocations: 4 kB / 368.6 MB, free: 2.387 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002322/0.16, allocations: 76.16 kB / 368.7 MB, free: 2.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006427/0.1607, allocations: 38.27 kB / 368.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002316/0.163, allocations: 0.9477 MB / 369.6 MB, free: 1.301 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005037/0.1635, allocations: 0.7673 MB / 370.4 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001556/0.1637, allocations: 25.94 kB / 370.4 MB, free: 492 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.647e-05/0.1638, allocations: 19.44 kB / 370.5 MB, free: 472 kB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1638, allocations: 0 / 370.5 MB, free: 472 kB / 302.1 MB Notification: Performance of Templates: time 0.2117/0.3755, allocations: 1.936 MB / 372.4 MB, free: 19.43 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches