Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001176/0.001176, allocations: 175.9 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.491/1.491, allocations: 205.4 MB / 222.9 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007755/0.0007754, allocations: 101 kB / 271.2 MB, free: 8.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003112, allocations: 8 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2402, allocations: 47.58 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.008661/0.2489, allocations: 10.34 MB / 385.4 MB, free: 37.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005914/0.2548, allocations: 3.034 MB / 388.5 MB, free: 34.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001831/0.2567, allocations: 42.28 kB / 388.5 MB, free: 34.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001874/0.2586, allocations: 0.511 MB / 389 MB, free: 34.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002283/0.2609, allocations: 0.559 MB / 389.6 MB, free: 33.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000948/0.2618, allocations: 236 kB / 389.8 MB, free: 33.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002564/0.2644, allocations: 2.082 MB / 391.9 MB, free: 31.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001075/0.2655, allocations: 0.8395 MB / 392.7 MB, free: 30.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00107/0.2666, allocations: 0.6689 MB / 393.4 MB, free: 30.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007703/0.2674, allocations: 0.7465 MB / 394.2 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001651/0.2675, allocations: 100 kB / 394.3 MB, free: 29.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003707/0.2679, allocations: 144 kB / 394.4 MB, free: 29.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.2681, allocations: 290.6 kB / 394.7 MB, free: 29.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006798/0.2688, allocations: 0.8687 MB / 395.5 MB, free: 28.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001309/0.2701, allocations: 2.107 MB / 397.7 MB, free: 26.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2701, allocations: 0 / 397.7 MB, free: 26.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2701, allocations: 4 kB / 397.7 MB, free: 26.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.486e-05/0.2702, allocations: 0 / 397.7 MB, free: 26.03 MB / 298.7 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.002535/0.2727, allocations: 1.76 MB / 399.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.2728, allocations: 8.031 kB / 399.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006477/0.2734, allocations: 262.5 kB / 399.7 MB, free: 23.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.2747, allocations: 1.017 MB / 400.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.15e-05/0.2748, allocations: 111.5 kB / 400.8 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001542/0.275, allocations: 163.8 kB / 401 MB, free: 22.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002062/0.277, allocations: 1.487 MB / 402.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.757e-05/0.2771, allocations: 7.938 kB / 402.5 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/0.2772, allocations: 60 kB / 402.5 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.2772, allocations: 40 kB / 402.6 MB, free: 20.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.2788, allocations: 0.9786 MB / 403.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006176/0.285, allocations: 6.597 MB / 410.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007397/0.2858, allocations: 408.1 kB / 410.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003658/0.2862, allocations: 228.5 kB / 410.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.234e-05/0.2862, allocations: 8.438 kB / 410.8 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004921/0.2867, allocations: 276.8 kB / 411 MB, free: 12.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.605e-06/0.2868, allocations: 0 / 411 MB, free: 12.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.002632/0.2894, allocations: 1.777 MB / 412.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.2894, allocations: 170.7 kB / 413 MB, free: 10 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001342/0.2908, allocations: 1.265 MB / 414.2 MB, free: 8.719 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/0.2908, allocations: 33.7 kB / 414.3 MB, free: 8.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004345/0.2913, allocations: 0.8712 MB / 415.1 MB, free: 7.797 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.2914, allocations: 209.2 kB / 415.4 MB, free: 7.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.518e-05/0.2914, allocations: 20 kB / 415.4 MB, free: 7.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.854e-05/0.2915, allocations: 357.8 kB / 415.7 MB, free: 7.215 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000392/0.2919, allocations: 230.5 kB / 415.9 MB, free: 6.988 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005743/0.2925, allocations: 0.8034 MB / 416.8 MB, free: 5.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009843/0.2935, allocations: 1.122 MB / 417.9 MB, free: 4.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.2935, allocations: 8 kB / 417.9 MB, free: 4.512 MB / 298.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001621/0.2951, allocations: 1.169 MB / 419 MB, free: 3.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.099e-05/0.2952, allocations: 42.48 kB / 419.1 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.2952, allocations: 20 kB / 419.1 MB, free: 3.254 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000207/0.2954, allocations: 78.25 kB / 419.2 MB, free: 3.172 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006771/0.2961, allocations: 263.6 kB / 419.4 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/0.2974, allocations: 2.587 MB / 422 MB, free: 64 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009259/0.2983, allocations: 75.83 kB / 422.1 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.682e-05/0.2984, allocations: 60 kB / 422.2 MB, free: 15.93 MB / 314.7 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.0006636/0.2991, allocations: 361.5 kB / 422.5 MB, free: 15.56 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.2992, allocations: 130.4 kB / 422.6 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001038/0.3003, allocations: 0.5606 MB / 423.2 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.3003, allocations: 7.938 kB / 423.2 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.3003, allocations: 4 kB / 423.2 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.3003, allocations: 3.984 kB / 423.2 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002786/0.3031, allocations: 1.885 MB / 425.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.3031, allocations: 8.094 kB / 425.1 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004213/0.3036, allocations: 103.9 kB / 425.2 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.3037, allocations: 45.64 kB / 425.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.3038, allocations: 16 kB / 425.3 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/0.3055, allocations: 2.548 MB / 427.8 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.3055, allocations: 11.94 kB / 427.8 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.3069, allocations: 0.9342 MB / 428.8 MB, free: 8.832 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004948/0.3075, allocations: 255.4 kB / 429 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/0.3076, allocations: 19.98 kB / 429 MB, free: 8.543 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000493/0.3081, allocations: 35.98 kB / 429.1 MB, free: 8.508 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.3082, allocations: 55.8 kB / 429.1 MB, free: 8.453 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.012e-05/0.3083, allocations: 20 kB / 429.1 MB, free: 8.434 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001204/0.3095, allocations: 0.8344 MB / 430 MB, free: 7.598 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3095, allocations: 0 / 430 MB, free: 7.598 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001122/0.3106, allocations: 303.9 kB / 430.3 MB, free: 7.301 MB / 314.7 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.0002115/0.3108, allocations: 135 kB / 430.4 MB, free: 7.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.3124, allocations: 0.922 MB / 431.3 MB, free: 6.207 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3124, allocations: 64 / 431.3 MB, free: 6.207 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006395/0.313, allocations: 469.7 kB / 431.8 MB, free: 5.723 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002122/0.3152, allocations: 313.2 kB / 432.1 MB, free: 5.418 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004533/0.3197, allocations: 3.124 MB / 435.2 MB, free: 2.215 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000827/0.3206, allocations: 1.174 MB / 436.4 MB, free: 1.008 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002842/0.3209, allocations: 95.42 kB / 436.5 MB, free: 0.918 MB / 314.7 MB Notification: Performance of SimCode: time 6.51e-07/0.3209, allocations: 3.938 kB / 436.5 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of Templates: time 0.03943/0.3603, allocations: 31.26 MB / 467.8 MB, free: 1.621 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches