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.0007599/0.00076, allocations: 95.31 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008811/0.0008811, allocations: 204.2 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.7 MB / 247.5 MB, free: 9.461 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002182/0.0002183, allocations: 4 kB / 308.4 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09098/0.09122, allocations: 51.53 MB / 359.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01041/0.1017, allocations: 11.09 MB / 371 MB, free: 1.891 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1679/0.2696, allocations: 3.197 MB / 374.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.2707, allocations: 36.34 kB / 374.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001706/0.2724, allocations: 0.5583 MB / 374.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001774/0.2742, allocations: 0.5818 MB / 375.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007606/0.275, allocations: 354.6 kB / 375.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002251/0.2772, allocations: 2.114 MB / 377.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001082/0.2783, allocations: 0.8485 MB / 378.7 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.2794, allocations: 0.6995 MB / 379.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000903/0.2803, allocations: 0.7826 MB / 380.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.2805, allocations: 102.1 kB / 380.3 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004071/0.2809, allocations: 143.1 kB / 380.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002108/0.2812, allocations: 300.2 kB / 380.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007334/0.2819, allocations: 0.9043 MB / 381.6 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00221/0.2841, allocations: 2.112 MB / 383.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.2841, allocations: 3.938 kB / 383.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.2841, allocations: 1.094 kB / 383.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.081e-05/0.2842, allocations: 0 / 383.7 MB, free: 8.25 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.002632/0.2868, allocations: 1.755 MB / 385.5 MB, free: 7.125 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.2869, allocations: 8.969 kB / 385.5 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007158/0.2876, allocations: 260.6 kB / 385.7 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.2889, allocations: 1.028 MB / 386.8 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.689e-05/0.289, allocations: 114.2 kB / 386.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001926/0.2892, allocations: 163.9 kB / 387 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002261/0.2914, allocations: 1.493 MB / 388.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.654e-05/0.2915, allocations: 11.75 kB / 388.5 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.2916, allocations: 62.03 kB / 388.6 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.669e-05/0.2917, allocations: 37.91 kB / 388.6 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/0.2934, allocations: 0.9859 MB / 389.6 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00628/0.2997, allocations: 6.586 MB / 396.2 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008016/0.3005, allocations: 413.4 kB / 396.6 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004257/0.301, allocations: 230.1 kB / 396.8 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.301, allocations: 5.406 kB / 396.8 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00052/0.3015, allocations: 277.6 kB / 397.1 MB, free: 14.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.964e-06/0.3016, allocations: 0 / 397.1 MB, free: 14.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003144/0.3047, allocations: 1.788 MB / 398.9 MB, free: 13.6 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.015e-05/0.3048, allocations: 170.1 kB / 399.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0017/0.3065, allocations: 1.275 MB / 400.3 MB, free: 12.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.792e-05/0.3066, allocations: 36.39 kB / 400.4 MB, free: 12.65 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006312/0.3072, allocations: 0.8745 MB / 401.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.3074, allocations: 206.9 kB / 401.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.3075, allocations: 95.73 kB / 401.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3076, allocations: 355.9 kB / 401.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000466/0.3081, allocations: 237.3 kB / 402.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008181/0.3089, allocations: 0.8079 MB / 402.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.3102, allocations: 1.138 MB / 404.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.3102, allocations: 5.438 kB / 404.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001768/0.312, allocations: 1.181 MB / 405.3 MB, free: 8.566 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.712e-05/0.3121, allocations: 39.67 kB / 405.3 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.785e-05/0.3121, allocations: 21.06 kB / 405.3 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002092/0.3123, allocations: 63.45 kB / 405.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007365/0.3131, allocations: 277.1 kB / 405.7 MB, free: 8.438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001738/0.3148, allocations: 2.575 MB / 408.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009555/0.3158, allocations: 72.55 kB / 408.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.555e-05/0.3159, allocations: 59.56 kB / 408.4 MB, free: 5.723 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.0006635/0.3165, allocations: 373 kB / 408.7 MB, free: 5.438 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.3167, allocations: 134.1 kB / 408.9 MB, free: 5.367 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001042/0.3177, allocations: 0.5637 MB / 409.4 MB, free: 5.035 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.3177, allocations: 7.562 kB / 409.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.3178, allocations: 3.938 kB / 409.4 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.3178, allocations: 3.984 kB / 409.4 MB, free: 5.023 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002756/0.3205, allocations: 1.887 MB / 411.3 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.231e-06/0.3206, allocations: 4 kB / 411.3 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004184/0.321, allocations: 112.3 kB / 411.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00013/0.3211, allocations: 41.7 kB / 411.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.154e-05/0.3212, allocations: 20 kB / 411.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001694/0.3229, allocations: 2.549 MB / 414 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.3229, allocations: 7.938 kB / 414.1 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/0.3242, allocations: 0.9383 MB / 415 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003489/0.3246, allocations: 255.4 kB / 415.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.3247, allocations: 19.98 kB / 415.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005124/0.3252, allocations: 35.97 kB / 415.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.3254, allocations: 51.83 kB / 415.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/0.3254, allocations: 19.98 kB / 415.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001105/0.3265, allocations: 0.85 MB / 416.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3265, allocations: 0 / 416.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001037/0.3276, allocations: 303.9 kB / 416.5 MB, free: 13.48 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.0002097/0.3278, allocations: 141.6 kB / 416.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.3291, allocations: 0.9253 MB / 417.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3291, allocations: 4.875 kB / 417.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005813/0.3297, allocations: 465.1 kB / 418 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001985/0.3317, allocations: 318.3 kB / 418.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003865/0.3356, allocations: 3.306 MB / 421.7 MB, free: 8.195 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006774/0.3363, allocations: 1.174 MB / 422.8 MB, free: 6.992 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.3365, allocations: 91.44 kB / 422.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3365, allocations: 0 / 422.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of Templates: time 0.0326/0.3691, allocations: 31.28 MB / 454.2 MB, free: 7.672 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/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