Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 108.4 kB / 18.4 MB, free: 4.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001793/0.001793, allocations: 190.1 kB / 19.34 MB, free: 3.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.308/1.308, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 55.92 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09917/0.1011, allocations: 46.61 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.1641/0.2653, allocations: 12.1 MB / 387.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004259/0.2696, allocations: 3.308 MB / 391.2 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006075/0.2702, allocations: 36.72 kB / 391.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.2715, allocations: 0.6678 MB / 391.9 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001173/0.2727, allocations: 0.7252 MB / 392.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006685/0.2734, allocations: 409.4 kB / 393.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001969/0.2754, allocations: 2.41 MB / 395.5 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001077/0.2765, allocations: 1.008 MB / 396.5 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009534/0.2774, allocations: 0.8891 MB / 397.4 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009143/0.2783, allocations: 0.9871 MB / 398.4 MB, free: 468 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002579/0.2786, allocations: 228.8 kB / 398.6 MB, free: 468 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004579/0.2791, allocations: 266.7 kB / 398.8 MB, free: 460 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002677/0.2794, allocations: 459.4 kB / 399.3 MB, free: 116 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009531/0.2803, allocations: 1.076 MB / 400.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002633/0.283, allocations: 2.828 MB / 403.2 MB, free: 14.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.283, allocations: 0 / 403.2 MB, free: 14.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.283, allocations: 4 kB / 403.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.48e-05/0.283, allocations: 1.438 kB / 403.2 MB, free: 14.34 MB / 334.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.003462/0.2865, allocations: 2.155 MB / 405.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.2865, allocations: 8.906 kB / 405.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008773/0.2874, allocations: 286.7 kB / 405.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001715/0.2891, allocations: 1.121 MB / 406.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.803e-05/0.2892, allocations: 122.4 kB / 406.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002092/0.2895, allocations: 161.8 kB / 407 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002485/0.2919, allocations: 1.504 MB / 408.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.624e-05/0.292, allocations: 11 kB / 408.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/0.2921, allocations: 62.88 kB / 408.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.991e-05/0.2922, allocations: 37.25 kB / 408.7 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002043/0.2942, allocations: 1.049 MB / 409.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007351/0.3016, allocations: 6.23 MB / 415.9 MB, free: 4.953 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/0.3031, allocations: 0.6207 MB / 416.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008639/0.3039, allocations: 470.5 kB / 417 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.331e-05/0.304, allocations: 6.219 kB / 417 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.304, allocations: 42.06 kB / 417.1 MB, free: 4.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.235e-06/0.304, allocations: 4 kB / 417.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.004574/0.3086, allocations: 2.357 MB / 419.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/0.3087, allocations: 112.1 kB / 419.5 MB, free: 2.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00164/0.3103, allocations: 1.309 MB / 420.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/0.3104, allocations: 37.27 kB / 420.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000535/0.3109, allocations: 0.8479 MB / 421.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001685/0.3111, allocations: 260.3 kB / 422 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/0.3114, allocations: 206.7 kB / 422.2 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3115, allocations: 357.9 kB / 422.5 MB, free: 348 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005643/0.3121, allocations: 278.5 kB / 422.8 MB, free: 68 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008425/0.3129, allocations: 0.7382 MB / 423.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001442/0.3144, allocations: 1.084 MB / 424.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.3144, allocations: 4 kB / 424.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002214/0.3166, allocations: 1.267 MB / 425.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.3167, allocations: 12 kB / 425.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.3167, allocations: 16 kB / 425.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004655/0.3171, allocations: 135 kB / 426.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008363/0.318, allocations: 255.6 kB / 426.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003603/0.3216, allocations: 4.638 MB / 430.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008146/0.3224, allocations: 52.09 kB / 431 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-05/0.3225, allocations: 63.94 kB / 431.1 MB, free: 6.941 MB / 350.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.0004808/0.323, allocations: 365.4 kB / 431.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.3232, allocations: 138.2 kB / 431.5 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001764/0.325, allocations: 0.8334 MB / 432.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.325, allocations: 3.984 kB / 432.4 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.325, allocations: 3.938 kB / 432.4 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000361/0.3254, allocations: 271.3 kB / 432.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001668/0.3255, allocations: 19.98 kB / 432.7 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006066/0.3262, allocations: 35.97 kB / 432.7 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.607e-05/0.3263, allocations: 52.58 kB / 432.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002043/0.3283, allocations: 0.8468 MB / 433.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001807/0.3301, allocations: 1.152 MB / 434.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000476/0.3306, allocations: 261.1 kB / 435 MB, free: 2.898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001144/0.3318, allocations: 0.8781 MB / 435.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of Backend: time 5.1e-07/0.3318, allocations: 0 / 435.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001905/0.3337, allocations: 1.009 MB / 436.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of SimCode: time 0.004472/0.3382, allocations: 3.384 MB / 440.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of Templates: time 0.02827/0.3665, allocations: 18.33 MB / 458.6 MB, free: 11.16 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches