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.00153/0.00153, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001879/0.001879, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 59.94 kB / 306.9 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09436/0.09559, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01248/0.1081, allocations: 11.76 MB / 369.2 MB, free: 2.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1612/0.2694, allocations: 3.248 MB / 372.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001936/0.2714, allocations: 34.62 kB / 372.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002025/0.2735, allocations: 0.6473 MB / 373.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002757/0.2762, allocations: 0.6737 MB / 373.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009294/0.2772, allocations: 398.7 kB / 374.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003016/0.2802, allocations: 2.24 MB / 376.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001528/0.2818, allocations: 0.9864 MB / 377.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001871/0.2836, allocations: 0.8395 MB / 378.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001081/0.2847, allocations: 0.9076 MB / 379.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002704/0.285, allocations: 217.5 kB / 379.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004788/0.2855, allocations: 253 kB / 379.7 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002627/0.2858, allocations: 430.8 kB / 380.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008342/0.2866, allocations: 1.021 MB / 381.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002787/0.2894, allocations: 2.642 MB / 383.7 MB, free: 7.719 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2894, allocations: 0 / 383.7 MB, free: 7.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2894, allocations: 0.5312 kB / 383.7 MB, free: 7.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.306e-05/0.2895, allocations: 0 / 383.7 MB, free: 7.719 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.00352/0.293, allocations: 2.077 MB / 385.8 MB, free: 6.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2931, allocations: 13.03 kB / 385.8 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007907/0.2939, allocations: 252.9 kB / 386.1 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/0.2953, allocations: 1.031 MB / 387.1 MB, free: 5.602 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.809e-05/0.2954, allocations: 113.5 kB / 387.2 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001991/0.2956, allocations: 156.8 kB / 387.4 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002199/0.2978, allocations: 1.492 MB / 388.9 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.803e-05/0.2979, allocations: 7.969 kB / 388.9 MB, free: 4.758 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.298, allocations: 62.88 kB / 388.9 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.124e-05/0.298, allocations: 43.06 kB / 389 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001728/0.2998, allocations: 0.978 MB / 390 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006871/0.3066, allocations: 6.568 MB / 396.5 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007842/0.3075, allocations: 395 kB / 396.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004205/0.3079, allocations: 225.7 kB / 397.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.758e-05/0.3079, allocations: 10.36 kB / 397.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005423/0.3085, allocations: 264.1 kB / 397.4 MB, free: 14.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.545e-06/0.3085, allocations: 5.406 kB / 397.4 MB, free: 14.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003481/0.312, allocations: 1.758 MB / 399.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.19e-05/0.3121, allocations: 165.4 kB / 399.3 MB, free: 12.83 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001693/0.3138, allocations: 1.28 MB / 400.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.02e-05/0.3139, allocations: 36.55 kB / 400.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007093/0.3146, allocations: 0.8671 MB / 401.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001585/0.3147, allocations: 209.1 kB / 401.7 MB, free: 11.12 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002801/0.315, allocations: 218.3 kB / 401.9 MB, free: 10.99 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3152, allocations: 358.8 kB / 402.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004424/0.3156, allocations: 232.5 kB / 402.5 MB, free: 10.54 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007737/0.3164, allocations: 0.8058 MB / 403.3 MB, free: 9.621 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001295/0.3177, allocations: 1.115 MB / 404.4 MB, free: 8.547 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/0.3177, allocations: 5.406 kB / 404.4 MB, free: 8.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001962/0.3197, allocations: 1.177 MB / 405.6 MB, free: 7.922 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.583e-05/0.3198, allocations: 41.22 kB / 405.6 MB, free: 7.887 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.086e-05/0.3198, allocations: 19.19 kB / 405.7 MB, free: 7.887 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002317/0.32, allocations: 61.98 kB / 405.7 MB, free: 7.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007451/0.3208, allocations: 273.5 kB / 406 MB, free: 7.773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/0.3227, allocations: 2.781 MB / 408.8 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.3238, allocations: 67.88 kB / 408.8 MB, free: 4.645 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-05/0.3239, allocations: 64.06 kB / 408.9 MB, free: 4.582 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.0006166/0.3245, allocations: 353.3 kB / 409.2 MB, free: 4.227 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.3247, allocations: 134.3 kB / 409.4 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.3257, allocations: 0.5581 MB / 409.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.3257, allocations: 4 kB / 409.9 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3257, allocations: 0 / 409.9 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3258, allocations: 3.984 kB / 409.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002742/0.3285, allocations: 1.866 MB / 411.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3285, allocations: 4 kB / 411.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004289/0.329, allocations: 107.8 kB / 411.9 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000146/0.3291, allocations: 42.17 kB / 412 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.222e-05/0.3292, allocations: 16 kB / 412 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001812/0.331, allocations: 2.749 MB / 414.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/0.331, allocations: 11.88 kB / 414.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.3324, allocations: 0.9217 MB / 415.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005601/0.333, allocations: 259.3 kB / 415.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.3332, allocations: 19.98 kB / 415.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005351/0.3337, allocations: 27.98 kB / 416 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.3338, allocations: 55.81 kB / 416 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/0.3339, allocations: 20 kB / 416 MB, free: 12.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001204/0.3351, allocations: 0.8461 MB / 416.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3351, allocations: 0 / 416.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0012/0.3363, allocations: 308 kB / 417.2 MB, free: 11.8 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.0002115/0.3365, allocations: 131.1 kB / 417.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.3381, allocations: 0.9452 MB / 418.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.3381, allocations: 4 kB / 418.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006593/0.3387, allocations: 462.4 kB / 418.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0015/0.3403, allocations: 350.7 kB / 419.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003791/0.3441, allocations: 2.546 MB / 421.6 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007178/0.3448, allocations: 1.178 MB / 422.8 MB, free: 6.047 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006473/0.3455, allocations: 171.3 kB / 422.9 MB, free: 5.875 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001674/0.3456, allocations: 87.44 kB / 423 MB, free: 5.789 MB / 334.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3456, allocations: 0 / 423 MB, free: 5.789 MB / 334.1 MB Notification: Performance of Templates: time 0.02635/0.372, allocations: 14.97 MB / 438 MB, free: 6.992 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.0.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