Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001849/0.001849, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002048/0.002047, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 246.3 MB, free: 9.109 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 67.67 kB / 306.3 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09735/0.09926, allocations: 50.54 MB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01408/0.1134, allocations: 11.68 MB / 368.5 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1711/0.2845, allocations: 3.22 MB / 371.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002011/0.2866, allocations: 36.56 kB / 371.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002191/0.2888, allocations: 0.5573 MB / 372.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002139/0.291, allocations: 0.5844 MB / 372.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008812/0.2919, allocations: 347.4 kB / 373.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003003/0.2949, allocations: 2.12 MB / 375.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001367/0.2963, allocations: 0.8528 MB / 376.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001807/0.2981, allocations: 0.7678 MB / 377 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001088/0.2992, allocations: 0.8558 MB / 377.9 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002318/0.2994, allocations: 134.7 kB / 378 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005221/0.3, allocations: 172 kB / 378.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002867/0.3002, allocations: 350.3 kB / 378.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009823/0.3012, allocations: 0.9393 MB / 379.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003006/0.3042, allocations: 2.577 MB / 382 MB, free: 8.027 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3043, allocations: 0 / 382 MB, free: 8.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3043, allocations: 0 / 382 MB, free: 8.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.568e-05/0.3044, allocations: 5.25 kB / 382 MB, free: 8.023 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004038/0.3084, allocations: 2.068 MB / 384.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.3085, allocations: 9.469 kB / 384.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009146/0.3094, allocations: 256.5 kB / 384.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001647/0.311, allocations: 1.021 MB / 385.4 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.859e-05/0.3111, allocations: 114.6 kB / 385.5 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002409/0.3114, allocations: 160.2 kB / 385.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00276/0.3142, allocations: 1.492 MB / 387.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.119e-05/0.3142, allocations: 11.84 kB / 387.2 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/0.3144, allocations: 66.84 kB / 387.2 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.232e-05/0.3144, allocations: 38.16 kB / 387.3 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001845/0.3163, allocations: 0.9716 MB / 388.2 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007706/0.324, allocations: 6.575 MB / 394.8 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008622/0.3249, allocations: 405.7 kB / 395.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004465/0.3253, allocations: 223.8 kB / 395.4 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.3254, allocations: 12.52 kB / 395.4 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006205/0.326, allocations: 265.3 kB / 395.7 MB, free: 14.74 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.093e-06/0.326, allocations: 0 / 395.7 MB, free: 14.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.00358/0.3296, allocations: 1.754 MB / 397.4 MB, free: 13.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.3297, allocations: 162.8 kB / 397.6 MB, free: 13.33 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001905/0.3317, allocations: 1.282 MB / 398.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.621e-05/0.3317, allocations: 40.77 kB / 398.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007845/0.3325, allocations: 0.8661 MB / 399.8 MB, free: 11.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.3327, allocations: 207.2 kB / 400 MB, free: 11.62 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00032/0.333, allocations: 224.5 kB / 400.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.3332, allocations: 356.9 kB / 400.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004498/0.3337, allocations: 225.5 kB / 400.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.3347, allocations: 0.8095 MB / 401.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.3362, allocations: 1.11 MB / 402.7 MB, free: 9.055 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/0.3362, allocations: 8.656 kB / 402.7 MB, free: 9.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001928/0.3381, allocations: 1.169 MB / 403.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.529e-05/0.3382, allocations: 44 kB / 403.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/0.3382, allocations: 20.19 kB / 403.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002423/0.3385, allocations: 71.39 kB / 404 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007424/0.3392, allocations: 266.2 kB / 404.3 MB, free: 8.301 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002393/0.3416, allocations: 2.584 MB / 406.9 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.3429, allocations: 62.5 kB / 406.9 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.842e-05/0.343, allocations: 64.91 kB / 407 MB, free: 5.574 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007397/0.3438, allocations: 358.4 kB / 407.3 MB, free: 5.301 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002037/0.344, allocations: 137.7 kB / 407.5 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/0.3451, allocations: 0.5524 MB / 408 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.3451, allocations: 4 kB / 408 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3451, allocations: 3.938 kB / 408 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.3451, allocations: 8 kB / 408 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003151/0.3483, allocations: 1.868 MB / 409.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.3483, allocations: 4 kB / 409.9 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000444/0.3487, allocations: 95.89 kB / 410 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001646/0.3489, allocations: 49.62 kB / 410.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.745e-05/0.349, allocations: 16 kB / 410.1 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002139/0.3511, allocations: 2.556 MB / 412.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.808e-06/0.3511, allocations: 11.88 kB / 412.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/0.3527, allocations: 0.9228 MB / 413.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000472/0.3532, allocations: 255.4 kB / 413.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001524/0.3533, allocations: 19.98 kB / 413.8 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000549/0.3539, allocations: 27.98 kB / 413.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.354, allocations: 55.81 kB / 413.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.655e-05/0.3541, allocations: 20 kB / 413.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0015/0.3556, allocations: 0.8422 MB / 414.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3556, allocations: 0 / 414.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001535/0.3571, allocations: 312 kB / 415.1 MB, free: 13.35 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002688/0.3574, allocations: 135.1 kB / 415.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.3591, allocations: 0.9258 MB / 416.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3591, allocations: 0 / 416.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007202/0.3599, allocations: 458.3 kB / 416.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/0.3614, allocations: 318.3 kB / 416.9 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004728/0.3661, allocations: 3.155 MB / 420 MB, free: 8.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000943/0.3671, allocations: 1.178 MB / 421.2 MB, free: 7.039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006702/0.3678, allocations: 167.3 kB / 421.4 MB, free: 6.871 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.368, allocations: 87.42 kB / 421.5 MB, free: 6.785 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.368, allocations: 0 / 421.5 MB, free: 6.785 MB / 334.1 MB Notification: Performance of Templates: time 0.02951/0.3975, allocations: 14.26 MB / 435.7 MB, free: 8.695 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches