Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|converter_m.Phi.re|inductor_e.i",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") translateModel(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|converter_m.Phi.re|inductor_e.i",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001837/0.001837, allocations: 114.5 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002147/0.002147, allocations: 206 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.453/2.453, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002181/0.002181, allocations: 59.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6297/0.6319, allocations: 50.54 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.00799/0.64, allocations: 3.302 MB / 413.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006402/0.6465, allocations: 1.401 MB / 414.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007808/0.6474, allocations: 15.94 kB / 414.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000869/0.6484, allocations: 139.1 kB / 414.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001969/0.6504, allocations: 421.7 kB / 415.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007628/0.6511, allocations: 187.5 kB / 415.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001423/0.6526, allocations: 462 kB / 415.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005237/0.6531, allocations: 160.2 kB / 416 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004949/0.6537, allocations: 167.4 kB / 416.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006426/0.6543, allocations: 207.1 kB / 416.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.6545, allocations: 36 kB / 416.4 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009344/0.6554, allocations: 167.9 kB / 416.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001646/0.6556, allocations: 87.62 kB / 416.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004703/0.6561, allocations: 195 kB / 416.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001499/0.6576, allocations: 0.55 MB / 417.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.707e-06/0.6577, allocations: 4 kB / 417.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.6577, allocations: 0 / 417.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.351e-05/0.6577, allocations: 0 / 417.4 MB, free: 10.11 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.002911/0.6606, allocations: 0.7371 MB / 418.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.183e-05/0.6607, allocations: 8.031 kB / 418.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001698/0.6624, allocations: 124.3 kB / 418.2 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009395/0.6634, allocations: 313.7 kB / 418.5 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.499e-05/0.6635, allocations: 25.38 kB / 418.6 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.622e-05/0.6636, allocations: 36.28 kB / 418.6 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.6647, allocations: 361.6 kB / 419 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.6647, allocations: 0 / 419 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.843e-05/0.6648, allocations: 16 kB / 419 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.6648, allocations: 8 kB / 419 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007972/0.6656, allocations: 246.1 kB / 419.2 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003399/0.669, allocations: 1.311 MB / 420.5 MB, free: 6.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005908/0.6697, allocations: 205.1 kB / 420.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002327/0.6699, allocations: 85.67 kB / 420.8 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001625/0.6716, allocations: 1.196 MB / 422 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.6716, allocations: 34.55 kB / 422.1 MB, free: 5.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 3.958e-06/0.6717, allocations: 4 kB / 422.1 MB, free: 5.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.000897/0.6726, allocations: 217.3 kB / 422.3 MB, free: 4.793 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/0.6726, allocations: 85.05 kB / 422.4 MB, free: 4.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004727/0.6731, allocations: 286.9 kB / 422.6 MB, free: 4.402 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.933e-05/0.6732, allocations: 29.7 kB / 422.7 MB, free: 4.367 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/0.6734, allocations: 243.5 kB / 422.9 MB, free: 4.125 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.637e-05/0.6735, allocations: 55.17 kB / 423 MB, free: 4.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/0.6737, allocations: 69.92 kB / 423 MB, free: 3.992 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002273/0.6739, allocations: 334.8 kB / 423.3 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002766/0.6742, allocations: 72.61 kB / 423.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003777/0.6746, allocations: 198.4 kB / 423.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007308/0.6753, allocations: 284.4 kB / 423.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/0.6754, allocations: 4 kB / 423.9 MB, free: 2.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001031/0.6764, allocations: 320.9 kB / 424.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.616e-05/0.6765, allocations: 4 kB / 424.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-05/0.6765, allocations: 7.938 kB / 424.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.549e-05/0.6765, allocations: 8.562 kB / 424.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005126/0.6771, allocations: 87.83 kB / 424.3 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.085e-05/0.6771, allocations: 11.94 kB / 424.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003791/0.6775, allocations: 39.53 kB / 424.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.17e-05/0.6776, allocations: 16 kB / 424.4 MB, free: 2.5 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (39): * Single equations (assignments): 39 * 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.0002854/0.6779, allocations: 153.8 kB / 424.5 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.678, allocations: 23.72 kB / 424.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.156e-05/0.6781, allocations: 29.78 kB / 424.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.6781, allocations: 7.938 kB / 424.6 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.6782, allocations: 4.25 kB / 424.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.6782, allocations: 0 / 424.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001438/0.6796, allocations: 0.5147 MB / 425.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.6796, allocations: 0 / 425.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004591/0.6801, allocations: 47.84 kB / 425.2 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-05/0.6801, allocations: 8.031 kB / 425.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.907e-05/0.6802, allocations: 7.984 kB / 425.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.219e-05/0.6802, allocations: 7.984 kB / 425.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.6802, allocations: 0 / 425.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.6813, allocations: 418.3 kB / 425.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.6814, allocations: 112.6 kB / 425.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.159e-05/0.6815, allocations: 4 kB / 425.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003827/0.6819, allocations: 19.92 kB / 425.7 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/0.682, allocations: 7.984 kB / 425.7 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.933e-05/0.6821, allocations: 8 kB / 425.7 MB, free: 1.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003768/0.6825, allocations: 198 kB / 425.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.42e-07/0.6825, allocations: 0 / 425.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008947/0.6834, allocations: 91.8 kB / 426 MB, free: 0.7578 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor_e.i,converter_m.Phi.re) * 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 (17): * Single equations (assignments): 17 * 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.0002721/0.6837, allocations: 107.3 kB / 426.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007944/0.6845, allocations: 191.7 kB / 426.3 MB, free: 464 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/0.6845, allocations: 4 kB / 426.3 MB, free: 460 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002855/0.6848, allocations: 71.84 kB / 426.4 MB, free: 388 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00081/0.6857, allocations: 37.94 kB / 426.4 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.6879, allocations: 0.6799 MB / 427.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005079/0.6884, allocations: 0.7714 MB / 427.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.6886, allocations: 27.42 kB / 427.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of SimCode: time 1.153e-06/0.6886, allocations: 0 / 427.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of Templates: time 0.01084/0.6995, allocations: 3.547 MB / 431.4 MB, free: 11.26 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/SinglePhaseInductance/SinglePhaseInductance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches