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.001257/0.001257, allocations: 116.1 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00156/0.001561, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 63.92 kB / 306.4 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09815/0.09929, allocations: 50.53 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0122/0.1115, allocations: 12.07 MB / 369.1 MB, free: 2.277 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1645/0.2761, allocations: 3.258 MB / 372.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.2777, allocations: 37.47 kB / 372.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001828/0.2795, allocations: 0.5837 MB / 372.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001987/0.2815, allocations: 0.6215 MB / 373.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007793/0.2823, allocations: 358.5 kB / 373.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002658/0.285, allocations: 2.396 MB / 376.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001327/0.2863, allocations: 0.9927 MB / 377.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001625/0.288, allocations: 0.9182 MB / 378.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.2891, allocations: 0.9821 MB / 379.2 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002738/0.2894, allocations: 229.8 kB / 379.4 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005534/0.29, allocations: 269 kB / 379.7 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002639/0.2903, allocations: 457.5 kB / 380.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008574/0.2911, allocations: 1.074 MB / 381.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002694/0.2938, allocations: 2.801 MB / 384 MB, free: 7.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.2938, allocations: 0 / 384 MB, free: 7.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2938, allocations: 1.344 kB / 384 MB, free: 7.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.783e-05/0.2939, allocations: 0 / 384 MB, free: 7.152 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.003525/0.2974, allocations: 2.154 MB / 386.2 MB, free: 5.789 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.2975, allocations: 9.375 kB / 386.2 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009537/0.2984, allocations: 279.8 kB / 386.4 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001473/0.2999, allocations: 1.108 MB / 387.5 MB, free: 4.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.299e-05/0.3, allocations: 122.3 kB / 387.7 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001967/0.3002, allocations: 160.4 kB / 387.8 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002396/0.3026, allocations: 1.507 MB / 389.3 MB, free: 4.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.931e-05/0.3027, allocations: 10.88 kB / 389.3 MB, free: 4.129 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/0.3028, allocations: 61.62 kB / 389.4 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.857e-05/0.3028, allocations: 38 kB / 389.4 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.3047, allocations: 1.051 MB / 390.5 MB, free: 3.621 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007174/0.3119, allocations: 6.296 MB / 396.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.3135, allocations: 0.6081 MB / 397.4 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009305/0.3145, allocations: 468.3 kB / 397.9 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.191e-05/0.3145, allocations: 7.188 kB / 397.9 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.3146, allocations: 42.56 kB / 397.9 MB, free: 13.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.525e-06/0.3146, allocations: 0 / 397.9 MB, free: 13.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.005306/0.3199, allocations: 2.372 MB / 400.3 MB, free: 12.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.462e-05/0.32, allocations: 111.8 kB / 400.4 MB, free: 12.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001617/0.3216, allocations: 1.298 MB / 401.7 MB, free: 11.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/0.3217, allocations: 40.89 kB / 401.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005729/0.3222, allocations: 0.8489 MB / 402.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.3224, allocations: 260.8 kB / 402.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002775/0.3227, allocations: 207.4 kB / 403 MB, free: 10.33 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3229, allocations: 352.2 kB / 403.4 MB, free: 9.988 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000565/0.3234, allocations: 282.2 kB / 403.6 MB, free: 9.855 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009245/0.3244, allocations: 0.738 MB / 404.4 MB, free: 9.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001485/0.3259, allocations: 1.085 MB / 405.5 MB, free: 8.125 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/0.3259, allocations: 4 kB / 405.5 MB, free: 8.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002489/0.3284, allocations: 1.264 MB / 406.7 MB, free: 6.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.3285, allocations: 16.44 kB / 406.8 MB, free: 6.824 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.186e-05/0.3285, allocations: 20 kB / 406.8 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005207/0.329, allocations: 138.4 kB / 406.9 MB, free: 6.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008714/0.3299, allocations: 255.6 kB / 407.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004026/0.3339, allocations: 4.629 MB / 411.8 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.3352, allocations: 59.88 kB / 411.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.184e-05/0.3353, allocations: 56 kB / 411.9 MB, free: 1.254 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.3359, allocations: 366 kB / 412.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002372/0.3361, allocations: 134.3 kB / 412.4 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001857/0.338, allocations: 0.8292 MB / 413.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.338, allocations: 8 kB / 413.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.338, allocations: 7.938 kB / 413.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.338, allocations: 4 kB / 413.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004124/0.3422, allocations: 2.327 MB / 415.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.3422, allocations: 8.016 kB / 415.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005839/0.3428, allocations: 131.8 kB / 415.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004524/0.3432, allocations: 138.4 kB / 415.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.758e-05/0.3433, allocations: 27.98 kB / 415.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004122/0.3474, allocations: 4.784 MB / 420.6 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.882e-06/0.3475, allocations: 11.98 kB / 420.7 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002381/0.3499, allocations: 1.284 MB / 421.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006423/0.3505, allocations: 287.3 kB / 422.2 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002962/0.3508, allocations: 23.94 kB / 422.2 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007458/0.3516, allocations: 39.97 kB / 422.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.3517, allocations: 64.36 kB / 422.3 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.841e-05/0.3518, allocations: 27.98 kB / 422.4 MB, free: 6.125 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001486/0.3533, allocations: 0.8742 MB / 423.2 MB, free: 5.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3533, allocations: 0 / 423.2 MB, free: 5.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001452/0.3547, allocations: 332 kB / 423.6 MB, free: 4.926 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.0002726/0.355, allocations: 134.6 kB / 423.7 MB, free: 4.785 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002166/0.3572, allocations: 1.14 MB / 424.8 MB, free: 3.609 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.3572, allocations: 0 / 424.8 MB, free: 3.609 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.3583, allocations: 0.7196 MB / 425.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/0.3602, allocations: 365 kB / 425.9 MB, free: 2.508 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005736/0.3659, allocations: 3.583 MB / 429.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008374/0.3668, allocations: 1.214 MB / 430.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007742/0.3676, allocations: 171.6 kB / 430.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.3678, allocations: 91.42 kB / 431 MB, free: 13.35 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3678, allocations: 0 / 431 MB, free: 13.35 MB / 350.1 MB Notification: Performance of Templates: time 0.03085/0.3987, allocations: 17.56 MB / 448.5 MB, free: 12 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