Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.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 3.2.3+maint.om/package.mo", uses=false) 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.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.QuasiStationary.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance") translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 110.5 kB / 17.93 MB, free: 5.676 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.00125/0.001249, allocations: 193.8 kB / 18.86 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.1 MB / 224.7 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 51.92 kB / 280.8 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.106, allocations: 46.63 MB / 327.4 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance): time 0.006106/0.1122, allocations: 3.761 MB / 331.2 MB, free: 1 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002694/0.1149, allocations: 1.445 MB / 332.6 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004654/0.1154, allocations: 12 kB / 332.7 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001993/0.1175, allocations: 0.7083 MB / 333.4 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001542/0.119, allocations: 0.5134 MB / 333.9 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009061/0.1199, allocations: 402.8 kB / 334.3 MB, free: 13.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006742/0.1206, allocations: 482 kB / 334.7 MB, free: 13.44 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007477/0.1214, allocations: 438.1 kB / 335.2 MB, free: 13.01 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004126/0.1218, allocations: 215.1 kB / 335.4 MB, free: 12.8 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004158/0.1222, allocations: 278.9 kB / 335.7 MB, free: 12.53 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.106e-05/0.1223, allocations: 47.94 kB / 335.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004879/0.1228, allocations: 211.8 kB / 335.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.1229, allocations: 115.6 kB / 336 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002653/0.1232, allocations: 246.7 kB / 336.3 MB, free: 11.92 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007661/0.124, allocations: 0.5338 MB / 336.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.124, allocations: 4 kB / 336.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.124, allocations: 0 / 336.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.1e-05/0.124, allocations: 0 / 336.8 MB, free: 11.38 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002417/0.1265, allocations: 0.9326 MB / 337.7 MB, free: 10.4 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.1265, allocations: 12.02 kB / 337.7 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004238/0.1308, allocations: 0.5857 MB / 338.3 MB, free: 9.801 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004666/0.1313, allocations: 307.7 kB / 338.6 MB, free: 9.461 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.585e-05/0.1313, allocations: 45.69 kB / 338.7 MB, free: 9.414 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.1314, allocations: 60.27 kB / 338.7 MB, free: 9.355 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.1326, allocations: 0.5608 MB / 339.3 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/0.1326, allocations: 4 kB / 339.3 MB, free: 8.785 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.895e-05/0.1327, allocations: 27.94 kB / 339.3 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.1327, allocations: 12 kB / 339.3 MB, free: 8.746 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.1339, allocations: 0.6337 MB / 340 MB, free: 8.113 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003527/0.1374, allocations: 2.05 MB / 342 MB, free: 5.926 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002865/0.1403, allocations: 3.005 MB / 345 MB, free: 2.355 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003888/0.1407, allocations: 230 kB / 345.2 MB, free: 2.129 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/0.1409, allocations: 89.55 kB / 345.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/0.1409, allocations: 35 kB / 345.4 MB, free: 1.98 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 2.354e-06/0.1409, allocations: 0 / 345.4 MB, free: 1.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.00196/0.1429, allocations: 0.8049 MB / 346.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.1429, allocations: 55.84 kB / 346.2 MB, free: 1.078 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002346/0.1432, allocations: 201.1 kB / 346.4 MB, free: 0.875 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.484e-05/0.1432, allocations: 33.7 kB / 346.5 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.1434, allocations: 244 kB / 346.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.1436, allocations: 169.6 kB / 346.9 MB, free: 436 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.1437, allocations: 98.16 kB / 347 MB, free: 332 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1439, allocations: 338.8 kB / 347.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003118/0.1442, allocations: 157 kB / 347.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003799/0.1446, allocations: 273.9 kB / 347.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006939/0.1453, allocations: 468.5 kB / 348.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1453, allocations: 0 / 348.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001061/0.1464, allocations: 0.5824 MB / 348.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.1464, allocations: 7.938 kB / 348.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.537e-06/0.1464, allocations: 4 kB / 348.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003737/0.1468, allocations: 92.88 kB / 348.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004058/0.1472, allocations: 111.8 kB / 349 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002262/0.1495, allocations: 2.045 MB / 351 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003569/0.1499, allocations: 51.44 kB / 351.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.1499, allocations: 20.08 kB / 351.1 MB, free: 11.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002656/0.1502, allocations: 173.7 kB / 351.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.547e-05/0.1503, allocations: 27.72 kB / 351.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.1514, allocations: 0.559 MB / 351.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.1515, allocations: 15.92 kB / 351.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1515, allocations: 4 kB / 351.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1515, allocations: 0 / 351.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001763/0.1533, allocations: 1.137 MB / 353 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.1533, allocations: 3.984 kB / 353 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003276/0.1536, allocations: 75.91 kB / 353.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002789/0.1539, allocations: 88.8 kB / 353.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.1539, allocations: 15.94 kB / 353.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001958/0.1559, allocations: 2.039 MB / 355.2 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1559, allocations: 0 / 355.2 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.1573, allocations: 0.8115 MB / 356 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.095e-05/0.1574, allocations: 104.7 kB / 356.1 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.414e-05/0.1574, allocations: 12 kB / 356.1 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.1577, allocations: 19.98 kB / 356.2 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.728e-05/0.1578, allocations: 36.38 kB / 356.2 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.1578, allocations: 20.06 kB / 356.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001327/0.158, allocations: 150.9 kB / 356.4 MB, free: 6.418 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.158, allocations: 0 / 356.4 MB, free: 6.418 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006381/0.1586, allocations: 155.5 kB / 356.5 MB, free: 6.266 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * 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 (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002485/0.1589, allocations: 135.2 kB / 356.6 MB, free: 6.121 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.1601, allocations: 0.6089 MB / 357.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1602, allocations: 0 / 357.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005633/0.1607, allocations: 392.9 kB / 357.6 MB, free: 5.102 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000418/0.1612, allocations: 32.62 kB / 357.7 MB, free: 5.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001801/0.163, allocations: 1.097 MB / 358.8 MB, free: 3.938 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004537/0.1634, allocations: 0.821 MB / 359.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/0.1636, allocations: 43.42 kB / 359.6 MB, free: 3.051 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1636, allocations: 0 / 359.6 MB, free: 3.051 MB / 302.1 MB Notification: Performance of Templates: time 0.01011/0.1737, allocations: 6.577 MB / 366.2 MB, free: 12.46 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches