Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001726/0.001726, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001929/0.001929, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.579/1.579, allocations: 227.7 MB / 247.7 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 64.5 kB / 307.9 MB, free: 476 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08959/0.09153, allocations: 50.54 MB / 358.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0141/0.1057, allocations: 11.77 MB / 370.2 MB, free: 2.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1508/0.2565, allocations: 3.246 MB / 373.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001337/0.2579, allocations: 37.41 kB / 373.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.2597, allocations: 0.6456 MB / 374.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001726/0.2614, allocations: 0.6736 MB / 374.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008182/0.2623, allocations: 398.6 kB / 375.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002624/0.2649, allocations: 2.236 MB / 377.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001304/0.2662, allocations: 0.9797 MB / 378.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00137/0.2676, allocations: 0.8421 MB / 379.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001087/0.2687, allocations: 0.91 MB / 380.2 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002943/0.269, allocations: 217.3 kB / 380.4 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005091/0.2695, allocations: 255.4 kB / 380.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002549/0.2698, allocations: 436 kB / 381.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008484/0.2706, allocations: 1.013 MB / 382.1 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00259/0.2732, allocations: 2.646 MB / 384.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.2733, allocations: 1.156 kB / 384.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.2733, allocations: 0.9375 kB / 384.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.774e-05/0.2733, allocations: 3.938 kB / 384.7 MB, free: 7.289 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.003351/0.2767, allocations: 2.067 MB / 386.8 MB, free: 5.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.2767, allocations: 13.28 kB / 386.8 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007703/0.2775, allocations: 258.8 kB / 387 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/0.2789, allocations: 1.021 MB / 388.1 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.913e-05/0.2789, allocations: 118 kB / 388.2 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002003/0.2792, allocations: 157.6 kB / 388.3 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002234/0.2814, allocations: 1.499 MB / 389.8 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.886e-05/0.2815, allocations: 7.531 kB / 389.8 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001116/0.2816, allocations: 66.28 kB / 389.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.282e-05/0.2816, allocations: 38.66 kB / 389.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.2833, allocations: 0.9743 MB / 390.9 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007009/0.2903, allocations: 6.57 MB / 397.5 MB, free: 14.33 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000819/0.2912, allocations: 395.6 kB / 397.9 MB, free: 14.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004289/0.2916, allocations: 219.8 kB / 398.1 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.765e-05/0.2917, allocations: 13.45 kB / 398.1 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005937/0.2923, allocations: 268.8 kB / 398.4 MB, free: 13.83 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.084e-06/0.2923, allocations: 0 / 398.4 MB, free: 13.83 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003592/0.2959, allocations: 1.757 MB / 400.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/0.296, allocations: 169.3 kB / 400.3 MB, free: 12.42 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00184/0.2979, allocations: 1.271 MB / 401.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.104e-05/0.2979, allocations: 36.36 kB / 401.6 MB, free: 11.67 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007768/0.2987, allocations: 0.8749 MB / 402.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.2989, allocations: 210.6 kB / 402.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002908/0.2992, allocations: 216.7 kB / 402.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.2994, allocations: 352.7 kB / 403.2 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004654/0.2999, allocations: 231.7 kB / 403.5 MB, free: 10.13 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.3009, allocations: 0.8072 MB / 404.3 MB, free: 9.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/0.3024, allocations: 1.119 MB / 405.4 MB, free: 8.141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.3024, allocations: 5.5 kB / 405.4 MB, free: 8.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001989/0.3044, allocations: 1.174 MB / 406.6 MB, free: 7.516 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.253e-05/0.3045, allocations: 39.98 kB / 406.6 MB, free: 7.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.3045, allocations: 17.94 kB / 406.6 MB, free: 7.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002295/0.3047, allocations: 69.81 kB / 406.7 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007384/0.3055, allocations: 273.2 kB / 407 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/0.3078, allocations: 2.778 MB / 409.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.3089, allocations: 68.05 kB / 409.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.876e-05/0.309, allocations: 56 kB / 409.9 MB, free: 4.25 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.0006479/0.3097, allocations: 361.3 kB / 410.2 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.3099, allocations: 138.3 kB / 410.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001135/0.311, allocations: 0.5528 MB / 410.9 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.311, allocations: 4.094 kB / 410.9 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.311, allocations: 0 / 410.9 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.3111, allocations: 7.969 kB / 410.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003061/0.3141, allocations: 1.867 MB / 412.8 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.3141, allocations: 4.469 kB / 412.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004538/0.3146, allocations: 111.8 kB / 412.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001524/0.3148, allocations: 40.08 kB / 412.9 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/0.3148, allocations: 16 kB / 412.9 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00229/0.3171, allocations: 2.746 MB / 415.7 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.538e-06/0.3171, allocations: 15.88 kB / 415.7 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.3187, allocations: 0.9188 MB / 416.6 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004772/0.3192, allocations: 259.3 kB / 416.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001551/0.3194, allocations: 16 kB / 416.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005451/0.3199, allocations: 39.97 kB / 416.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.32, allocations: 51.81 kB / 417 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.11e-05/0.3201, allocations: 20 kB / 417 MB, free: 12.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001299/0.3214, allocations: 0.8461 MB / 417.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3214, allocations: 0 / 417.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001195/0.3226, allocations: 308 kB / 418.1 MB, free: 11.45 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.0002353/0.3228, allocations: 131.1 kB / 418.3 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001713/0.3246, allocations: 0.9453 MB / 419.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.3246, allocations: 4 kB / 419.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007098/0.3253, allocations: 466.1 kB / 419.7 MB, free: 9.852 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001519/0.3268, allocations: 341.7 kB / 420 MB, free: 9.531 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004297/0.3311, allocations: 2.574 MB / 422.6 MB, free: 6.879 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008948/0.3321, allocations: 1.178 MB / 423.8 MB, free: 5.668 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002292/0.3323, allocations: 99.42 kB / 423.9 MB, free: 5.57 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3323, allocations: 0 / 423.9 MB, free: 5.57 MB / 334.1 MB Notification: Performance of Templates: time 0.04004/0.3723, allocations: 31.51 MB / 455.4 MB, free: 6.109 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches