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.001157/0.001157, allocations: 117 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001158/0.001158, allocations: 208.5 kB / 19.36 MB, free: 3.742 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.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 58.88 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09923/0.1004, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01217/0.1126, allocations: 12.17 MB / 371.1 MB, free: 1.102 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1594/0.2721, allocations: 3.305 MB / 374.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008236/0.2729, allocations: 36.91 kB / 374.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001378/0.2743, allocations: 0.6624 MB / 375.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001254/0.2756, allocations: 0.7275 MB / 375.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006676/0.2763, allocations: 400.5 kB / 376.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002025/0.2783, allocations: 2.417 MB / 378.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00106/0.2794, allocations: 1.002 MB / 379.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001125/0.2805, allocations: 0.9081 MB / 380.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001027/0.2816, allocations: 0.9786 MB / 381.5 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002751/0.2818, allocations: 229.2 kB / 381.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004927/0.2823, allocations: 266.4 kB / 382 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002721/0.2826, allocations: 464.5 kB / 382.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008472/0.2835, allocations: 1.078 MB / 383.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002553/0.286, allocations: 2.823 MB / 386.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2861, allocations: 1.125 kB / 386.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2861, allocations: 0 / 386.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.019e-05/0.2861, allocations: 0 / 386.3 MB, free: 7.121 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.003252/0.2894, allocations: 2.157 MB / 388.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2894, allocations: 9.375 kB / 388.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008575/0.2903, allocations: 283.1 kB / 388.8 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002089/0.2924, allocations: 1.123 MB / 389.9 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.2925, allocations: 118 kB / 390 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000333/0.2929, allocations: 161.7 kB / 390.2 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002883/0.2957, allocations: 1.506 MB / 391.7 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.318e-05/0.2958, allocations: 8.656 kB / 391.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001231/0.2959, allocations: 69.7 kB / 391.8 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.795e-05/0.296, allocations: 42.09 kB / 391.8 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001839/0.2978, allocations: 1.045 MB / 392.9 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00708/0.3049, allocations: 6.231 MB / 399.1 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.3065, allocations: 0.6166 MB / 399.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009004/0.3074, allocations: 468.2 kB / 400.2 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.219e-05/0.3074, allocations: 14.64 kB / 400.2 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.3075, allocations: 38.5 kB / 400.2 MB, free: 13.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.294e-06/0.3075, allocations: 4 kB / 400.2 MB, free: 13.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004956/0.3125, allocations: 2.375 MB / 402.6 MB, free: 12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.846e-05/0.3125, allocations: 115.7 kB / 402.7 MB, free: 11.88 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00171/0.3143, allocations: 1.292 MB / 404 MB, free: 11.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.442e-05/0.3143, allocations: 40.55 kB / 404 MB, free: 11.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005988/0.3149, allocations: 0.8532 MB / 404.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.3151, allocations: 256.9 kB / 405.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002755/0.3154, allocations: 207.7 kB / 405.3 MB, free: 10.01 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3155, allocations: 350.9 kB / 405.7 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000572/0.3161, allocations: 284.1 kB / 406 MB, free: 9.539 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009024/0.317, allocations: 0.744 MB / 406.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.3186, allocations: 1.087 MB / 407.8 MB, free: 7.523 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.3186, allocations: 4 kB / 407.8 MB, free: 7.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002333/0.3209, allocations: 1.26 MB / 409.1 MB, free: 6.242 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.321, allocations: 12 kB / 409.1 MB, free: 6.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.321, allocations: 12 kB / 409.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005136/0.3215, allocations: 142.9 kB / 409.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008228/0.3224, allocations: 259.5 kB / 409.5 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003767/0.3261, allocations: 4.623 MB / 414.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.3272, allocations: 63.98 kB / 414.2 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.487e-05/0.3272, allocations: 59.94 kB / 414.2 MB, free: 0.6562 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.0005547/0.3278, allocations: 365.3 kB / 414.6 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001838/0.328, allocations: 138.3 kB / 414.7 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.3298, allocations: 0.8256 MB / 415.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3298, allocations: 8 kB / 415.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.3298, allocations: 7.922 kB / 415.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.3298, allocations: 0 / 415.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003741/0.3336, allocations: 2.333 MB / 417.9 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.3336, allocations: 4 kB / 417.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005724/0.3342, allocations: 131.8 kB / 418 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004275/0.3346, allocations: 134.9 kB / 418.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.901e-05/0.3347, allocations: 27.92 kB / 418.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003978/0.3386, allocations: 4.781 MB / 423 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/0.3387, allocations: 4 kB / 423 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/0.3409, allocations: 1.304 MB / 424.3 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005007/0.3415, allocations: 291.2 kB / 424.5 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001597/0.3416, allocations: 16 kB / 424.6 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006427/0.3423, allocations: 39.91 kB / 424.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.3424, allocations: 68.36 kB / 424.7 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.382e-05/0.3425, allocations: 23.98 kB / 424.7 MB, free: 5.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001201/0.3437, allocations: 0.8781 MB / 425.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3437, allocations: 0 / 425.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001199/0.3449, allocations: 328 kB / 425.9 MB, free: 4.32 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.0002209/0.3451, allocations: 143.2 kB / 426 MB, free: 4.168 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.3469, allocations: 1.113 MB / 427.1 MB, free: 3.023 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.3469, allocations: 4 kB / 427.1 MB, free: 3.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009647/0.3479, allocations: 0.7177 MB / 427.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/0.3494, allocations: 366.5 kB / 428.2 MB, free: 1.918 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004835/0.3542, allocations: 2.884 MB / 431.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007518/0.355, allocations: 1.217 MB / 432.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006173/0.3556, allocations: 175.6 kB / 432.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002611/0.3559, allocations: 87.42 kB / 432.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of SimCode: time 1.993e-06/0.3559, allocations: 0 / 432.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of Templates: time 0.03122/0.3871, allocations: 17.69 MB / 450.3 MB, free: 11.95 MB / 366.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 -s cvode -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