Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001052/0.001052, allocations: 110.3 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 8.891 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.83 kB / 306.9 MB, free: 0.7891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09229/0.09356, allocations: 50.54 MB / 357.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01242/0.106, allocations: 12.07 MB / 369.5 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1586/0.2647, allocations: 3.269 MB / 372.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001915/0.2666, allocations: 36.72 kB / 372.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002066/0.2688, allocations: 0.5745 MB / 373.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002382/0.2712, allocations: 0.627 MB / 374 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008621/0.2721, allocations: 359.4 kB / 374.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003314/0.2754, allocations: 2.271 MB / 376.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001433/0.2768, allocations: 0.86 MB / 377.5 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001781/0.2786, allocations: 0.821 MB / 378.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001328/0.28, allocations: 0.9267 MB / 379.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002802/0.2803, allocations: 141.4 kB / 379.4 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006472/0.2809, allocations: 175.1 kB / 379.6 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002928/0.2812, allocations: 368 kB / 379.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001075/0.2823, allocations: 0.9918 MB / 380.9 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002506/0.2848, allocations: 2.284 MB / 383.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2848, allocations: 0 / 383.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.2849, allocations: 1.281 kB / 383.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.283e-05/0.2849, allocations: 0 / 383.2 MB, free: 7.715 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004278/0.2892, allocations: 2.162 MB / 385.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.2893, allocations: 9 kB / 385.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/0.2903, allocations: 281.1 kB / 385.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/0.292, allocations: 1.1 MB / 386.7 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.708e-05/0.2921, allocations: 121.3 kB / 386.9 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002046/0.2923, allocations: 157.1 kB / 387 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002446/0.2948, allocations: 1.511 MB / 388.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.716e-05/0.2949, allocations: 7.469 kB / 388.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/0.295, allocations: 62.44 kB / 388.6 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.223e-05/0.295, allocations: 38.78 kB / 388.6 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001948/0.297, allocations: 1.054 MB / 389.7 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007349/0.3043, allocations: 6.292 MB / 396 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.3059, allocations: 0.6132 MB / 396.6 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008772/0.3068, allocations: 464.9 kB / 397 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.861e-05/0.3069, allocations: 10.95 kB / 397.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.3069, allocations: 51.44 kB / 397.1 MB, free: 14.46 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.585e-06/0.3069, allocations: 0 / 397.1 MB, free: 14.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.005318/0.3123, allocations: 2.361 MB / 399.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.007e-05/0.3123, allocations: 110.6 kB / 399.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001926/0.3143, allocations: 1.304 MB / 400.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.026e-05/0.3144, allocations: 40.36 kB / 400.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005662/0.3149, allocations: 0.8466 MB / 401.8 MB, free: 11.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.3151, allocations: 261.6 kB / 402 MB, free: 11.08 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002635/0.3154, allocations: 204.4 kB / 402.2 MB, free: 10.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3155, allocations: 356.7 kB / 402.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005725/0.3161, allocations: 278.7 kB / 402.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008162/0.3169, allocations: 0.7393 MB / 403.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001471/0.3184, allocations: 1.09 MB / 404.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.308e-06/0.3184, allocations: 4.812 kB / 404.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002388/0.3208, allocations: 1.263 MB / 405.9 MB, free: 8.105 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.3209, allocations: 16.16 kB / 405.9 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.201e-05/0.3209, allocations: 17.38 kB / 406 MB, free: 8.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005131/0.3214, allocations: 134.5 kB / 406.1 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008055/0.3223, allocations: 259.6 kB / 406.4 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003548/0.3258, allocations: 4.269 MB / 410.6 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.327, allocations: 59.88 kB / 410.7 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.802e-05/0.3271, allocations: 52 kB / 410.7 MB, free: 2.93 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006311/0.3277, allocations: 369.3 kB / 411.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002128/0.328, allocations: 134.3 kB / 411.2 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00171/0.3297, allocations: 0.8334 MB / 412.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.3297, allocations: 4 kB / 412.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.3297, allocations: 4 kB / 412.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3297, allocations: 3.984 kB / 412.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004014/0.3337, allocations: 2.335 MB / 414.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.3338, allocations: 4 kB / 414.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005771/0.3343, allocations: 127.9 kB / 414.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004581/0.3348, allocations: 141.8 kB / 414.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.534e-05/0.3349, allocations: 19.94 kB / 414.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003877/0.3388, allocations: 4.392 MB / 419.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.8e-06/0.3388, allocations: 4 kB / 419.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002529/0.3413, allocations: 1.304 MB / 420.4 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007005/0.342, allocations: 283.4 kB / 420.7 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003679/0.3424, allocations: 16 kB / 420.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007955/0.3432, allocations: 39.97 kB / 420.7 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.3434, allocations: 60.36 kB / 420.8 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.658e-05/0.3434, allocations: 28.19 kB / 420.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001416/0.3448, allocations: 0.8742 MB / 421.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3448, allocations: 0 / 421.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001445/0.3463, allocations: 332 kB / 422 MB, free: 7.016 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002661/0.3466, allocations: 141.2 kB / 422.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001949/0.3485, allocations: 1.117 MB / 423.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.3485, allocations: 0 / 423.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.3496, allocations: 0.7032 MB / 424 MB, free: 4.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/0.3515, allocations: 348 kB / 424.3 MB, free: 4.645 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006028/0.3576, allocations: 3.629 MB / 427.9 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009722/0.3586, allocations: 1.214 MB / 429.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003575/0.3589, allocations: 99.42 kB / 429.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of SimCode: time 1.142e-06/0.359, allocations: 0 / 429.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of Templates: time 0.04507/0.404, allocations: 40.88 MB / 470.1 MB, free: 6.77 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches