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.001526/0.001526, allocations: 107.1 kB / 18.45 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001876/0.001876, allocations: 203.9 kB / 19.4 MB, free: 3.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 67.88 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2296, allocations: 50.55 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01311/0.2428, allocations: 12.16 MB / 422.1 MB, free: 5.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006142/0.249, allocations: 3.308 MB / 425.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00167/0.2507, allocations: 35.94 kB / 425.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002113/0.2528, allocations: 0.6868 MB / 426.1 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002455/0.2553, allocations: 0.7872 MB / 426.9 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009827/0.2563, allocations: 407.5 kB / 427.3 MB, free: 152 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003124/0.2594, allocations: 2.409 MB / 429.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001418/0.2609, allocations: 0.9969 MB / 430.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001685/0.2626, allocations: 0.9144 MB / 431.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001589/0.2642, allocations: 0.9762 MB / 432.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003359/0.2645, allocations: 228 kB / 432.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005915/0.2651, allocations: 279.9 kB / 433.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003007/0.2654, allocations: 462.3 kB / 433.6 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.2665, allocations: 1.069 MB / 434.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002771/0.2693, allocations: 2.844 MB / 437.5 MB, free: 5.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2693, allocations: 0 / 437.5 MB, free: 5.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2693, allocations: 0 / 437.5 MB, free: 5.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.346e-05/0.2693, allocations: 0 / 437.5 MB, free: 5.902 MB / 350.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.003474/0.2728, allocations: 2.209 MB / 439.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.2729, allocations: 8.031 kB / 439.7 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009129/0.2738, allocations: 299.5 kB / 440 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001743/0.2756, allocations: 1.135 MB / 441.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.779e-05/0.2756, allocations: 111.5 kB / 441.2 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002086/0.2759, allocations: 163.8 kB / 441.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002408/0.2783, allocations: 1.508 MB / 442.9 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.179e-05/0.2783, allocations: 11.88 kB / 442.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000115/0.2785, allocations: 72 kB / 443 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.822e-05/0.2785, allocations: 36 kB / 443 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002022/0.2805, allocations: 1.041 MB / 444.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007995/0.2885, allocations: 6.247 MB / 450.3 MB, free: 8.594 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.2901, allocations: 0.6153 MB / 450.9 MB, free: 7.965 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008739/0.2909, allocations: 470.2 kB / 451.4 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.995e-05/0.291, allocations: 8.562 kB / 451.4 MB, free: 7.496 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.291, allocations: 39.12 kB / 451.4 MB, free: 7.449 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 4.168e-06/0.291, allocations: 0 / 451.4 MB, free: 7.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004799/0.2959, allocations: 2.395 MB / 453.8 MB, free: 4.969 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.582e-05/0.2959, allocations: 111.5 kB / 453.9 MB, free: 4.836 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001809/0.2978, allocations: 1.31 MB / 455.2 MB, free: 3.512 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.763e-05/0.2978, allocations: 41.7 kB / 455.3 MB, free: 3.465 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006042/0.2984, allocations: 0.8671 MB / 456.2 MB, free: 2.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001993/0.2986, allocations: 265.8 kB / 456.4 MB, free: 2.328 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002871/0.2989, allocations: 206.8 kB / 456.6 MB, free: 2.121 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2991, allocations: 357.9 kB / 457 MB, free: 1.766 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005913/0.2997, allocations: 282.5 kB / 457.2 MB, free: 1.488 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008529/0.3005, allocations: 0.742 MB / 458 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.3021, allocations: 1.084 MB / 459.1 MB, free: 15.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.3021, allocations: 4 kB / 459.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002419/0.3045, allocations: 1.268 MB / 460.3 MB, free: 13.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.3045, allocations: 12.5 kB / 460.4 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.3046, allocations: 20 kB / 460.4 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005173/0.3051, allocations: 130.5 kB / 460.5 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008744/0.306, allocations: 263.6 kB / 460.8 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003829/0.3098, allocations: 4.631 MB / 465.4 MB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.3109, allocations: 63.98 kB / 465.4 MB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.366e-05/0.311, allocations: 59.88 kB / 465.5 MB, free: 8.348 MB / 382.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.0005873/0.3116, allocations: 357.4 kB / 465.9 MB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001831/0.3118, allocations: 139.1 kB / 466 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/0.3135, allocations: 0.8373 MB / 466.8 MB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.3135, allocations: 3.984 kB / 466.8 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3135, allocations: 3.938 kB / 466.8 MB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003985/0.3139, allocations: 280.1 kB / 467.1 MB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.3141, allocations: 15.98 kB / 467.1 MB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005855/0.3147, allocations: 31.97 kB / 467.2 MB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.3148, allocations: 52.58 kB / 467.2 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002064/0.3169, allocations: 0.8508 MB / 468.1 MB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001791/0.3187, allocations: 1.16 MB / 469.2 MB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004848/0.3192, allocations: 265 kB / 469.5 MB, free: 4.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001161/0.3203, allocations: 0.882 MB / 470.4 MB, free: 3.41 MB / 382.1 MB Notification: Performance of Backend: time 1.634e-06/0.3204, allocations: 0 / 470.4 MB, free: 3.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001981/0.3223, allocations: 1.018 MB / 471.4 MB, free: 2.344 MB / 382.1 MB Notification: Performance of SimCode: time 0.004601/0.327, allocations: 3.436 MB / 474.8 MB, free: 14.86 MB / 398.1 MB Notification: Performance of Templates: time 0.03172/0.3587, allocations: 18.67 MB / 493.5 MB, free: 12.35 MB / 414.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