Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.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 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.QuasiStatic.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.001395/0.001395, allocations: 182.1 kB / 17.2 MB, free: 5.906 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.31/1.31, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002246/0.0002246, allocations: 5.188 kB / 300.7 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0872/0.08744, allocations: 50.42 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance): time 0.003221/0.09069, allocations: 2.989 MB / 354.1 MB, free: 8.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001858/0.09257, allocations: 1.309 MB / 355.4 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.09273, allocations: 8 kB / 355.4 MB, free: 7.418 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000311/0.09305, allocations: 119.3 kB / 355.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009584/0.09401, allocations: 474.5 kB / 356 MB, free: 6.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006405/0.09466, allocations: 343.6 kB / 356.4 MB, free: 6.504 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003751/0.09505, allocations: 319.3 kB / 356.7 MB, free: 6.191 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001072/0.09613, allocations: 0.6252 MB / 357.3 MB, free: 5.539 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002353/0.09637, allocations: 171.3 kB / 357.5 MB, free: 5.371 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.09662, allocations: 215.2 kB / 357.7 MB, free: 5.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.09667, allocations: 20 kB / 357.7 MB, free: 5.141 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003102/0.09699, allocations: 167.7 kB / 357.9 MB, free: 4.977 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.746e-05/0.09705, allocations: 63.75 kB / 357.9 MB, free: 4.914 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.097e-05/0.09714, allocations: 105.5 kB / 358 MB, free: 4.805 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004883/0.09763, allocations: 0.5063 MB / 358.5 MB, free: 4.297 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.09764, allocations: 0 / 358.5 MB, free: 4.297 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09765, allocations: 0 / 358.5 MB, free: 4.297 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.09766, allocations: 0 / 358.5 MB, free: 4.297 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.001952/0.09962, allocations: 0.8233 MB / 359.4 MB, free: 3.422 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.09966, allocations: 12.03 kB / 359.4 MB, free: 3.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003479/0.1031, allocations: 494.9 kB / 359.8 MB, free: 2.926 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.1035, allocations: 302.4 kB / 360.1 MB, free: 2.59 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.556e-05/0.1035, allocations: 37.31 kB / 360.2 MB, free: 2.555 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.867e-05/0.1036, allocations: 48 kB / 360.2 MB, free: 2.508 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009023/0.1045, allocations: 0.5101 MB / 360.7 MB, free: 1.988 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.1046, allocations: 3.984 kB / 360.7 MB, free: 1.984 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.3e-05/0.1046, allocations: 27.95 kB / 360.8 MB, free: 1.957 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.1047, allocations: 12 kB / 360.8 MB, free: 1.945 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000998/0.1057, allocations: 0.5712 MB / 361.3 MB, free: 1.375 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002863/0.1085, allocations: 1.877 MB / 363.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002317/0.1109, allocations: 2.187 MB / 365.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001034/0.111, allocations: 97.52 kB / 365.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.111, allocations: 39 kB / 365.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.394e-06/0.1111, allocations: 0 / 365.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.001923/0.113, allocations: 0.8054 MB / 366.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.113, allocations: 59.8 kB / 366.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.1132, allocations: 182.3 kB / 366.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.1133, allocations: 33.7 kB / 366.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.1134, allocations: 216.5 kB / 366.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.1135, allocations: 161.7 kB / 367 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.083e-05/0.1135, allocations: 7.938 kB / 367 MB, free: 11.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1137, allocations: 338.8 kB / 367.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/0.114, allocations: 153 kB / 367.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003404/0.1143, allocations: 232.8 kB / 367.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003326/0.1147, allocations: 184.7 kB / 367.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1147, allocations: 0 / 367.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009658/0.1156, allocations: 0.5396 MB / 368.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.1157, allocations: 8 kB / 368.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1157, allocations: 0 / 368.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003321/0.116, allocations: 92.73 kB / 368.5 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003722/0.1164, allocations: 99.88 kB / 368.6 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001892/0.1183, allocations: 1.866 MB / 370.5 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002564/0.1186, allocations: 51.52 kB / 370.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.154e-05/0.1186, allocations: 16 kB / 370.6 MB, free: 7.402 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (50): * Single equations (assignments): 49 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001888/0.1188, allocations: 169.8 kB / 370.7 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.42e-05/0.1189, allocations: 27.7 kB / 370.7 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/0.1199, allocations: 0.555 MB / 371.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.12, allocations: 11.98 kB / 371.3 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.12, allocations: 0 / 371.3 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.12, allocations: 0 / 371.3 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.1216, allocations: 1.133 MB / 372.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1216, allocations: 0 / 372.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003332/0.1219, allocations: 79.89 kB / 372.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002768/0.1222, allocations: 88.81 kB / 372.6 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.846e-05/0.1223, allocations: 11.98 kB / 372.6 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00175/0.124, allocations: 1.866 MB / 374.5 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.124, allocations: 8.016 kB / 374.5 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.1253, allocations: 0.796 MB / 375.3 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.7e-05/0.1254, allocations: 112.6 kB / 375.4 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.139e-05/0.1254, allocations: 15.94 kB / 375.4 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002388/0.1257, allocations: 19.98 kB / 375.4 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.486e-05/0.1258, allocations: 36.45 kB / 375.5 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-05/0.1258, allocations: 19.98 kB / 375.5 MB, free: 2.211 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.1259, allocations: 136.2 kB / 375.6 MB, free: 2.078 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1259, allocations: 0 / 375.6 MB, free: 2.078 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005703/0.1265, allocations: 147.7 kB / 375.8 MB, free: 1.934 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 (42): * Single equations (assignments): 41 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002158/0.1267, allocations: 139.1 kB / 375.9 MB, free: 1.789 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.1278, allocations: 0.5698 MB / 376.5 MB, free: 1.203 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1278, allocations: 0 / 376.5 MB, free: 1.203 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005544/0.1283, allocations: 389.3 kB / 376.9 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.1286, allocations: 23.98 kB / 376.9 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.1299, allocations: 1.009 MB / 377.9 MB, free: 15.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.1303, allocations: 0.8165 MB / 378.7 MB, free: 14.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001932/0.1305, allocations: 42.95 kB / 378.7 MB, free: 14.87 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.864e-05/0.1306, allocations: 35.42 kB / 378.8 MB, free: 14.83 MB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1306, allocations: 4 kB / 378.8 MB, free: 14.83 MB / 318.1 MB Notification: Performance of Templates: time 0.007368/0.138, allocations: 3.883 MB / 382.7 MB, free: 10.95 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches