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.001062/0.001063, allocations: 105.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001267/0.001267, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 61.03 kB / 306.3 MB, free: 1.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09112/0.09238, allocations: 50.54 MB / 356.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01229/0.1047, allocations: 12.08 MB / 368.9 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1594/0.2641, allocations: 3.269 MB / 372.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002185/0.2663, allocations: 37.72 kB / 372.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002732/0.2692, allocations: 0.5684 MB / 372.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002642/0.2718, allocations: 0.6306 MB / 373.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.2729, allocations: 353.4 kB / 373.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003382/0.2763, allocations: 2.281 MB / 376 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.2774, allocations: 0.8497 MB / 376.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001348/0.2788, allocations: 0.8255 MB / 377.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008289/0.2796, allocations: 0.9199 MB / 378.6 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002156/0.2798, allocations: 140.4 kB / 378.7 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005678/0.2804, allocations: 180.7 kB / 378.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000274/0.2807, allocations: 369.6 kB / 379.3 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009167/0.2816, allocations: 0.9899 MB / 380.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003381/0.285, allocations: 2.723 MB / 383 MB, free: 7.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.285, allocations: 0 / 383 MB, free: 7.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2851, allocations: 0 / 383 MB, free: 7.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001083/0.2852, allocations: 4 kB / 383 MB, free: 7.68 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.004185/0.2894, allocations: 2.159 MB / 385.2 MB, free: 6.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.2894, allocations: 9.875 kB / 385.2 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001052/0.2905, allocations: 279.2 kB / 385.4 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001641/0.2921, allocations: 1.109 MB / 386.5 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.542e-05/0.2922, allocations: 113.5 kB / 386.7 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001965/0.2924, allocations: 157 kB / 386.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002557/0.295, allocations: 1.511 MB / 388.3 MB, free: 4.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.361e-05/0.295, allocations: 9.688 kB / 388.3 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.2952, allocations: 61.41 kB / 388.4 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.956e-05/0.2952, allocations: 38.31 kB / 388.4 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002096/0.2973, allocations: 1.059 MB / 389.5 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008506/0.3058, allocations: 6.29 MB / 395.8 MB, free: 14.99 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/0.3075, allocations: 0.6156 MB / 396.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000939/0.3085, allocations: 459 kB / 396.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.104e-05/0.3085, allocations: 14.89 kB / 396.9 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.3086, allocations: 47.19 kB / 396.9 MB, free: 14.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.775e-06/0.3086, allocations: 3.938 kB / 396.9 MB, free: 14.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.005472/0.3141, allocations: 2.359 MB / 399.3 MB, free: 12.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/0.3142, allocations: 110.8 kB / 399.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001798/0.316, allocations: 1.305 MB / 400.7 MB, free: 12.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.034e-05/0.316, allocations: 38.33 kB / 400.7 MB, free: 11.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005784/0.3166, allocations: 0.8527 MB / 401.6 MB, free: 11.22 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.3168, allocations: 259.4 kB / 401.8 MB, free: 11 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002639/0.3171, allocations: 204.2 kB / 402 MB, free: 10.87 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3172, allocations: 354.4 kB / 402.4 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005742/0.3178, allocations: 284.7 kB / 402.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009069/0.3187, allocations: 0.7314 MB / 403.4 MB, free: 9.633 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/0.3202, allocations: 1.094 MB / 404.5 MB, free: 8.688 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.3203, allocations: 3.188 kB / 404.5 MB, free: 8.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00253/0.3228, allocations: 1.257 MB / 405.7 MB, free: 7.727 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.3229, allocations: 16.06 kB / 405.7 MB, free: 7.711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.3229, allocations: 16 kB / 405.8 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005148/0.3234, allocations: 134.4 kB / 405.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008552/0.3243, allocations: 259.6 kB / 406.1 MB, free: 7.301 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003694/0.328, allocations: 4.274 MB / 410.4 MB, free: 2.629 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.329, allocations: 59.88 kB / 410.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.04e-05/0.3291, allocations: 52 kB / 410.5 MB, free: 2.52 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.0006132/0.3297, allocations: 365.4 kB / 410.9 MB, free: 2.152 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001955/0.3299, allocations: 134.3 kB / 411 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00175/0.3317, allocations: 0.8334 MB / 411.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.3317, allocations: 4 kB / 411.9 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.3317, allocations: 4 kB / 411.9 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.3317, allocations: 7.922 kB / 411.9 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003755/0.3355, allocations: 2.333 MB / 414.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.3355, allocations: 4 kB / 414.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005758/0.3361, allocations: 132.3 kB / 414.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004328/0.3365, allocations: 137.4 kB / 414.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.455e-05/0.3366, allocations: 20 kB / 414.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00399/0.3406, allocations: 4.393 MB / 418.9 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.3406, allocations: 4 kB / 418.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002345/0.343, allocations: 1.303 MB / 420.2 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005258/0.3435, allocations: 283.4 kB / 420.5 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.3437, allocations: 16 kB / 420.5 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000665/0.3443, allocations: 43.97 kB / 420.5 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.3445, allocations: 60.36 kB / 420.6 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.646e-05/0.3445, allocations: 24.19 kB / 420.6 MB, free: 7.809 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001304/0.3458, allocations: 0.8781 MB / 421.5 MB, free: 6.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3459, allocations: 4 kB / 421.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001272/0.3471, allocations: 324 kB / 421.8 MB, free: 6.609 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.0002231/0.3474, allocations: 135.1 kB / 421.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001813/0.3492, allocations: 1.113 MB / 423 MB, free: 5.316 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3492, allocations: 0.875 kB / 423 MB, free: 5.316 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009869/0.3502, allocations: 0.7023 MB / 423.8 MB, free: 4.578 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001655/0.3519, allocations: 357 kB / 424.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005865/0.3577, allocations: 3.586 MB / 427.7 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007921/0.3586, allocations: 1.214 MB / 428.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006925/0.3593, allocations: 183.7 kB / 429.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/0.3595, allocations: 91.42 kB / 429.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3595, allocations: 0 / 429.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of Templates: time 0.02976/0.3893, allocations: 16.79 MB / 446 MB, free: 14.46 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/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