Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001011/0.001011, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001283/0.001283, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002357/0.0002358, allocations: 4 kB / 306.6 MB, free: 1.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1108, allocations: 51.5 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008182/0.119, allocations: 6.607 MB / 364.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004926/0.124, allocations: 2.613 MB / 367.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008937/0.1249, allocations: 27.88 kB / 367.3 MB, free: 4.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001454/0.1264, allocations: 469.7 kB / 367.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001364/0.1278, allocations: 498.5 kB / 368.3 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004715/0.1282, allocations: 171.8 kB / 368.4 MB, free: 3.531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001606/0.1299, allocations: 1.046 MB / 369.5 MB, free: 2.484 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006282/0.1305, allocations: 431.3 kB / 369.9 MB, free: 2.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005503/0.1311, allocations: 442.2 kB / 370.3 MB, free: 1.613 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005499/0.1316, allocations: 489.7 kB / 370.8 MB, free: 1.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.702e-05/0.1317, allocations: 64 kB / 370.9 MB, free: 1.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002783/0.132, allocations: 108 kB / 371 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.1322, allocations: 183.2 kB / 371.2 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002189/0.1324, allocations: 261.1 kB / 371.4 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1887/0.3211, allocations: 1.326 MB / 372.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3211, allocations: 2 kB / 372.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.3211, allocations: 0 / 372.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.836e-05/0.3212, allocations: 0.625 kB / 372.7 MB, free: 10.93 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002364/0.3236, allocations: 1.28 MB / 374 MB, free: 10.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.3236, allocations: 8.688 kB / 374 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006833/0.3243, allocations: 188.5 kB / 374.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.3256, allocations: 0.7128 MB / 374.9 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.951e-05/0.3257, allocations: 81.53 kB / 375 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/0.3258, allocations: 99.84 kB / 375.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002085/0.3279, allocations: 0.9338 MB / 376 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.055e-05/0.328, allocations: 3.625 kB / 376 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.76e-05/0.3281, allocations: 41.88 kB / 376.1 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.66e-05/0.3281, allocations: 24.47 kB / 376.1 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001505/0.3296, allocations: 0.6554 MB / 376.8 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005998/0.3356, allocations: 3.933 MB / 380.7 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007352/0.3364, allocations: 444.5 kB / 381.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.549e-05/0.3365, allocations: 5.188 kB / 381.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.3365, allocations: 45.23 kB / 381.2 MB, free: 7.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.337e-06/0.3365, allocations: 4 kB / 381.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003208/0.3397, allocations: 1.443 MB / 382.6 MB, free: 7.168 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.3398, allocations: 80.8 kB / 382.7 MB, free: 7.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/0.3409, allocations: 0.78 MB / 383.5 MB, free: 6.934 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.341, allocations: 34.42 kB / 383.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000419/0.3414, allocations: 0.5656 MB / 384.1 MB, free: 6.617 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.3415, allocations: 162 kB / 384.2 MB, free: 6.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-05/0.3416, allocations: 18 kB / 384.3 MB, free: 6.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.724e-05/0.3417, allocations: 333.1 kB / 384.6 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003815/0.3421, allocations: 176.4 kB / 384.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005284/0.3426, allocations: 474.9 kB / 385.2 MB, free: 5.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004898/0.3431, allocations: 243.5 kB / 385.5 MB, free: 5.824 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.3431, allocations: 7.484 kB / 385.5 MB, free: 5.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001604/0.3447, allocations: 0.7742 MB / 386.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.879e-05/0.3448, allocations: 10.31 kB / 386.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.3448, allocations: 8.938 kB / 386.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002823/0.3451, allocations: 72.23 kB / 386.3 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005739/0.3457, allocations: 163.4 kB / 386.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001758/0.3474, allocations: 2.804 MB / 389.3 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006982/0.3482, allocations: 43.33 kB / 389.3 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.199e-05/0.3482, allocations: 32.91 kB / 389.4 MB, free: 3.094 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005443/0.3488, allocations: 269.1 kB / 389.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001322/0.3489, allocations: 89.58 kB / 389.7 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.3501, allocations: 496.9 kB / 390.2 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.3501, allocations: 14.31 kB / 390.2 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.3501, allocations: 1.094 kB / 390.2 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.3501, allocations: 5.828 kB / 390.2 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002541/0.3527, allocations: 1.42 MB / 391.6 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.3527, allocations: 2.094 kB / 391.6 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003353/0.353, allocations: 75.16 kB / 391.7 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001865/0.3532, allocations: 63.86 kB / 391.8 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.3532, allocations: 11.75 kB / 391.8 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001523/0.3548, allocations: 2.795 MB / 394.6 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3548, allocations: 1.594 kB / 394.6 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001424/0.3562, allocations: 0.8774 MB / 395.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003833/0.3566, allocations: 189.2 kB / 395.7 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.3567, allocations: 13.25 kB / 395.7 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004028/0.3571, allocations: 37.44 kB / 395.7 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.3573, allocations: 33.86 kB / 395.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.613e-05/0.3573, allocations: 22.03 kB / 395.8 MB, free: 14.89 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009165/0.3582, allocations: 0.5205 MB / 396.3 MB, free: 14.67 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3582, allocations: 1.094 kB / 396.3 MB, free: 14.67 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00106/0.3593, allocations: 208.3 kB / 396.5 MB, free: 14.64 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002559/0.3596, allocations: 118.4 kB / 396.6 MB, free: 14.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.3609, allocations: 0.709 MB / 397.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.3609, allocations: 1.344 kB / 397.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006536/0.3615, allocations: 449.7 kB / 397.7 MB, free: 13.9 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009601/0.3625, allocations: 205.4 kB / 397.9 MB, free: 13.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00299/0.3655, allocations: 2.131 MB / 400.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005901/0.3661, allocations: 1.035 MB / 401.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004515/0.3666, allocations: 109.8 kB / 401.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.3667, allocations: 59.02 kB / 401.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3667, allocations: 0 / 401.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of Templates: time 0.01873/0.3855, allocations: 9.155 MB / 410.4 MB, free: 5.258 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches