Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00102/0.00102, allocations: 101.8 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 191.4 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 227.7 MB / 246.4 MB, free: 9.816 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000226/0.0002261, allocations: 11.98 kB / 307.1 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09743/0.09767, allocations: 51.53 MB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0125/0.1102, allocations: 10.4 MB / 369 MB, free: 2.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2023/0.3126, allocations: 3.068 MB / 372.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002058/0.3147, allocations: 37.19 kB / 372.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002282/0.317, allocations: 0.5092 MB / 372.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002632/0.3197, allocations: 0.5557 MB / 373.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001198/0.3209, allocations: 252 kB / 373.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003915/0.3248, allocations: 2.007 MB / 375.5 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001837/0.3267, allocations: 0.6844 MB / 376.1 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001907/0.3286, allocations: 0.6752 MB / 376.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002176/0.3308, allocations: 0.7489 MB / 377.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006508/0.3315, allocations: 101.5 kB / 377.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001335/0.3328, allocations: 137.2 kB / 377.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005538/0.3334, allocations: 291.3 kB / 378.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.3344, allocations: 386.1 kB / 378.5 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003851/0.3383, allocations: 2.11 MB / 380.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.3383, allocations: 0 / 380.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.3383, allocations: 0 / 380.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001547/0.3385, allocations: 0 / 380.6 MB, free: 9.137 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.006246/0.3448, allocations: 1.777 MB / 382.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.3448, allocations: 9.344 kB / 382.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001528/0.3464, allocations: 265.8 kB / 382.6 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00274/0.3491, allocations: 0.9822 MB / 383.6 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.3493, allocations: 115.7 kB / 383.7 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005768/0.3499, allocations: 165.3 kB / 383.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004317/0.3542, allocations: 1.477 MB / 385.4 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.843e-05/0.3543, allocations: 9.531 kB / 385.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002024/0.3545, allocations: 65.03 kB / 385.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-05/0.3546, allocations: 38.34 kB / 385.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002577/0.3572, allocations: 0.9715 MB / 386.4 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008928/0.3661, allocations: 6.593 MB / 393 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000857/0.367, allocations: 415.4 kB / 393.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004464/0.3675, allocations: 227.1 kB / 393.7 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.246e-05/0.3675, allocations: 9.75 kB / 393.7 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005052/0.368, allocations: 271.4 kB / 393.9 MB, free: 2.195 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.775e-06/0.368, allocations: 1 kB / 393.9 MB, free: 2.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003729/0.3718, allocations: 1.79 MB / 395.7 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.3719, allocations: 161.7 kB / 395.9 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001996/0.3739, allocations: 1.263 MB / 397.1 MB, free: 64 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.3739, allocations: 36.61 kB / 397.2 MB, free: 24 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008573/0.3748, allocations: 0.8746 MB / 398.1 MB, free: 15.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/0.375, allocations: 205.5 kB / 398.3 MB, free: 15.08 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.763e-05/0.3751, allocations: 25.53 kB / 398.3 MB, free: 15.06 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3752, allocations: 347.2 kB / 398.6 MB, free: 14.72 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005532/0.3758, allocations: 228.9 kB / 398.8 MB, free: 14.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009683/0.3768, allocations: 0.8093 MB / 399.7 MB, free: 13.71 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007454/0.3775, allocations: 398.3 kB / 400 MB, free: 13.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.85e-05/0.3775, allocations: 6.094 kB / 400 MB, free: 13.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002186/0.3797, allocations: 1.18 MB / 401.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.724e-05/0.3798, allocations: 40.73 kB / 401.3 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-05/0.3798, allocations: 19.66 kB / 401.3 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002141/0.38, allocations: 66.92 kB / 401.3 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007329/0.3808, allocations: 267.3 kB / 401.6 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001818/0.3826, allocations: 2.582 MB / 404.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.3838, allocations: 72.33 kB / 404.3 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.877e-05/0.3839, allocations: 58.81 kB / 404.3 MB, free: 10.02 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007311/0.3847, allocations: 368.1 kB / 404.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.3848, allocations: 139.1 kB / 404.8 MB, free: 9.664 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001023/0.3859, allocations: 0.555 MB / 405.4 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.3859, allocations: 5.844 kB / 405.4 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3859, allocations: 0 / 405.4 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.3859, allocations: 7.938 kB / 405.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002923/0.3888, allocations: 1.886 MB / 407.3 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.3889, allocations: 3.906 kB / 407.3 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004249/0.3893, allocations: 106.8 kB / 407.4 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001524/0.3895, allocations: 49.11 kB / 407.4 MB, free: 7.891 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/0.3895, allocations: 15.14 kB / 407.4 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001749/0.3913, allocations: 2.549 MB / 410 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.3913, allocations: 4 kB / 410 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/0.3928, allocations: 0.9343 MB / 410.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005524/0.3934, allocations: 255.4 kB / 411.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001564/0.3935, allocations: 19.98 kB / 411.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005196/0.394, allocations: 39.97 kB / 411.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.46e-05/0.3941, allocations: 55.83 kB / 411.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.3942, allocations: 19.94 kB / 411.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001336/0.3955, allocations: 0.8344 MB / 412.1 MB, free: 2.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3956, allocations: 4 kB / 412.1 MB, free: 2.816 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001288/0.3968, allocations: 304 kB / 412.4 MB, free: 2.52 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002315/0.3971, allocations: 132.4 kB / 412.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.3986, allocations: 0.9296 MB / 413.5 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3986, allocations: 0 / 413.5 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006806/0.3993, allocations: 474.4 kB / 414 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.4008, allocations: 326.5 kB / 414.3 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00436/0.4052, allocations: 3.077 MB / 417.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007926/0.406, allocations: 1.182 MB / 418.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007027/0.4067, allocations: 175.2 kB / 418.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/0.4069, allocations: 85.72 kB / 418.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4069, allocations: 4 kB / 418.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of Templates: time 0.02674/0.4337, allocations: 13.73 MB / 432.5 MB, free: 14.42 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches