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.001371/0.001371, allocations: 95.09 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.001915/0.001915, allocations: 205.1 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.39/1.39, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002127/0.0002129, allocations: 4 kB / 306.6 MB, free: 1.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1007, allocations: 51.49 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.009711/0.1105, allocations: 9.339 MB / 367.4 MB, free: 4.566 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00515/0.1156, allocations: 3.187 MB / 370.6 MB, free: 1.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007188/0.1164, allocations: 35.88 kB / 370.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001132/0.1175, allocations: 0.513 MB / 371.1 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001263/0.1188, allocations: 0.705 MB / 371.8 MB, free: 116 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1728/0.2916, allocations: 245.5 kB / 372.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004036/0.2957, allocations: 1.553 MB / 373.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001389/0.2971, allocations: 0.6844 MB / 374.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001348/0.2984, allocations: 0.6374 MB / 375 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009444/0.2994, allocations: 0.7129 MB / 375.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001751/0.2996, allocations: 99.81 kB / 375.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003849/0.3, allocations: 132.5 kB / 375.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002104/0.3002, allocations: 277.2 kB / 376.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003677/0.3006, allocations: 386.4 kB / 376.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002118/0.3027, allocations: 2.049 MB / 378.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.3027, allocations: 0 / 378.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3027, allocations: 4.906 kB / 378.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.302e-05/0.3028, allocations: 0 / 378.6 MB, free: 10.05 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.002799/0.3056, allocations: 1.748 MB / 380.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.3056, allocations: 9.938 kB / 380.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006412/0.3063, allocations: 249.8 kB / 380.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/0.3078, allocations: 1.008 MB / 381.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.348e-05/0.3078, allocations: 119.7 kB / 381.7 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001964/0.3081, allocations: 158.8 kB / 381.9 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002351/0.3104, allocations: 1.462 MB / 383.3 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.979e-05/0.3105, allocations: 19.39 kB / 383.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.3106, allocations: 63.69 kB / 383.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.613e-05/0.3106, allocations: 37.06 kB / 383.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.3123, allocations: 0.9704 MB / 384.4 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006187/0.3185, allocations: 6.514 MB / 390.9 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007392/0.3193, allocations: 408.8 kB / 391.3 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.3193, allocations: 8.828 kB / 391.4 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004519/0.3198, allocations: 273.8 kB / 391.6 MB, free: 4.504 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.485e-06/0.3198, allocations: 0 / 391.6 MB, free: 4.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.00309/0.3229, allocations: 1.783 MB / 393.4 MB, free: 3.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/0.323, allocations: 165.8 kB / 393.6 MB, free: 3.387 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001464/0.3244, allocations: 1.186 MB / 394.8 MB, free: 2.715 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.3245, allocations: 36.89 kB / 394.8 MB, free: 2.676 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004431/0.3249, allocations: 0.8743 MB / 395.7 MB, free: 1.902 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.325, allocations: 204.3 kB / 395.9 MB, free: 1.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-05/0.3251, allocations: 25.16 kB / 395.9 MB, free: 1.711 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7e-05/0.3252, allocations: 351.1 kB / 396.2 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003959/0.3256, allocations: 230.2 kB / 396.5 MB, free: 1.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006294/0.3262, allocations: 0.8 MB / 397.3 MB, free: 368 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005654/0.3268, allocations: 402.8 kB / 397.6 MB, free: 140 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.3268, allocations: 5.156 kB / 397.7 MB, free: 140 kB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001856/0.3287, allocations: 1.18 MB / 398.8 MB, free: 15.51 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.352e-05/0.3287, allocations: 39.33 kB / 398.9 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/0.3287, allocations: 19.66 kB / 398.9 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002113/0.329, allocations: 71.47 kB / 399 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007708/0.3297, allocations: 268.6 kB / 399.2 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/0.3316, allocations: 2.582 MB / 401.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009833/0.3326, allocations: 77.41 kB / 401.9 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.666e-05/0.3327, allocations: 57.72 kB / 401.9 MB, free: 12.67 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006955/0.3334, allocations: 368.7 kB / 402.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.3335, allocations: 130.4 kB / 402.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.3346, allocations: 0.567 MB / 403 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.3346, allocations: 5.594 kB / 403 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.3346, allocations: 3.953 kB / 403 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.3346, allocations: 8.609 kB / 403 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00286/0.3375, allocations: 1.821 MB / 404.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3375, allocations: 2.844 kB / 404.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004153/0.3379, allocations: 112.7 kB / 404.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001451/0.3381, allocations: 42.05 kB / 405 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.529e-05/0.3381, allocations: 22.81 kB / 405 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001727/0.3399, allocations: 2.554 MB / 407.6 MB, free: 7.902 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3399, allocations: 5.625 kB / 407.6 MB, free: 7.902 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001674/0.3416, allocations: 1.121 MB / 408.7 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005501/0.3421, allocations: 245 kB / 408.9 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.3423, allocations: 15.66 kB / 408.9 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005012/0.3428, allocations: 37.53 kB / 409 MB, free: 6.734 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.3429, allocations: 52.67 kB / 409 MB, free: 6.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.002e-05/0.3429, allocations: 18.53 kB / 409 MB, free: 6.699 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001221/0.3442, allocations: 0.7818 MB / 409.8 MB, free: 6.039 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.263e-06/0.3442, allocations: 0 / 409.8 MB, free: 6.039 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001418/0.3456, allocations: 302.6 kB / 410.1 MB, free: 5.746 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003469/0.346, allocations: 138.7 kB / 410.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.348, allocations: 0.9215 MB / 411.2 MB, free: 4.648 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.348, allocations: 4.812 kB / 411.2 MB, free: 4.645 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007675/0.3488, allocations: 473.3 kB / 411.6 MB, free: 4.156 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001892/0.3507, allocations: 318.5 kB / 412 MB, free: 3.852 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004978/0.3557, allocations: 3.079 MB / 415 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008518/0.3566, allocations: 1.209 MB / 416.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007548/0.3573, allocations: 167.2 kB / 416.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/0.3575, allocations: 83.44 kB / 416.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of SimCode: time 9.71e-07/0.3575, allocations: 4 kB / 416.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of Templates: time 0.02419/0.3817, allocations: 12.93 MB / 429.4 MB, free: 2.453 MB / 334.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.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches