Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 109.5 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 222.9 MB / 242.3 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 55.5 kB / 302.1 MB, free: 5.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09191/0.09298, allocations: 49.44 MB / 351.5 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01267/0.1057, allocations: 11.74 MB / 363.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00581/0.1115, allocations: 3.218 MB / 366.5 MB, free: 4.637 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.1127, allocations: 35.88 kB / 366.5 MB, free: 4.602 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001553/0.1143, allocations: 0.6518 MB / 367.2 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00141/0.1157, allocations: 0.6704 MB / 367.8 MB, free: 3.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007156/0.1164, allocations: 399.5 kB / 368.2 MB, free: 2.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002182/0.1186, allocations: 2.254 MB / 370.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1575/0.2761, allocations: 0.9839 MB / 371.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001458/0.2776, allocations: 0.8347 MB / 372.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001157/0.2787, allocations: 0.9123 MB / 373.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003664/0.2791, allocations: 217.4 kB / 373.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006045/0.2797, allocations: 255.4 kB / 373.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003338/0.2801, allocations: 431.2 kB / 374.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001115/0.2812, allocations: 1.019 MB / 375.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004178/0.2854, allocations: 2.674 MB / 377.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.383e-05/0.2854, allocations: 1.281 kB / 377.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.2855, allocations: 5.031 kB / 377.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001038/0.2856, allocations: 0 / 377.8 MB, free: 11.44 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.004829/0.2904, allocations: 2.062 MB / 379.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.2905, allocations: 9.828 kB / 379.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000963/0.2914, allocations: 257.3 kB / 380.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001845/0.2933, allocations: 1.042 MB / 381.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.999e-05/0.2934, allocations: 115.7 kB / 381.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002103/0.2936, allocations: 156.7 kB / 381.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002496/0.2961, allocations: 1.487 MB / 382.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.456e-05/0.2962, allocations: 13.81 kB / 382.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001298/0.2963, allocations: 68.69 kB / 383 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-05/0.2964, allocations: 42.97 kB / 383 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001807/0.2982, allocations: 0.9717 MB / 384 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00681/0.305, allocations: 6.517 MB / 390.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007524/0.3058, allocations: 405.3 kB / 390.9 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003859/0.3062, allocations: 223.7 kB / 391.1 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.776e-05/0.3063, allocations: 7.5 kB / 391.1 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004366/0.3067, allocations: 269.2 kB / 391.4 MB, free: 4.047 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.104e-06/0.3067, allocations: 0 / 391.4 MB, free: 4.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003117/0.3098, allocations: 1.761 MB / 393.2 MB, free: 2.844 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.3099, allocations: 161.6 kB / 393.3 MB, free: 2.656 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001504/0.3114, allocations: 1.276 MB / 394.6 MB, free: 1.938 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.3115, allocations: 38.77 kB / 394.6 MB, free: 1.898 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004692/0.3119, allocations: 0.8721 MB / 395.5 MB, free: 1.125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.312, allocations: 205.6 kB / 395.7 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/0.3123, allocations: 221.9 kB / 395.9 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.231e-05/0.3124, allocations: 351.2 kB / 396.3 MB, free: 484 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004051/0.3128, allocations: 232.4 kB / 396.5 MB, free: 376 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007768/0.3136, allocations: 0.8019 MB / 397.3 MB, free: 15.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.3151, allocations: 1.117 MB / 398.4 MB, free: 14.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.3151, allocations: 5.5 kB / 398.4 MB, free: 14.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001984/0.3171, allocations: 1.174 MB / 399.6 MB, free: 13.95 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.999e-05/0.3171, allocations: 44.22 kB / 399.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.489e-05/0.3172, allocations: 19.66 kB / 399.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002379/0.3174, allocations: 68.77 kB / 399.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007072/0.3181, allocations: 266.8 kB / 400 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.3199, allocations: 2.776 MB / 402.8 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.321, allocations: 68.56 kB / 402.8 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.295e-05/0.3211, allocations: 62.84 kB / 402.9 MB, free: 10.93 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006122/0.3217, allocations: 365.1 kB / 403.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/0.3219, allocations: 131.4 kB / 403.4 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009604/0.3228, allocations: 0.5504 MB / 403.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3229, allocations: 13.86 kB / 403.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3229, allocations: 3.062 kB / 403.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.3229, allocations: 3.984 kB / 403.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/0.3255, allocations: 1.863 MB / 405.8 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.3256, allocations: 3.156 kB / 405.8 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004056/0.326, allocations: 106.2 kB / 405.9 MB, free: 8.906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001394/0.3261, allocations: 43.77 kB / 405.9 MB, free: 8.879 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.103e-05/0.3262, allocations: 10.59 kB / 406 MB, free: 8.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001679/0.3278, allocations: 2.749 MB / 408.7 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.3279, allocations: 5.938 kB / 408.7 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.3291, allocations: 0.9289 MB / 409.6 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003959/0.3295, allocations: 255.6 kB / 409.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001466/0.3297, allocations: 18.62 kB / 409.9 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005391/0.3302, allocations: 35.94 kB / 409.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.3303, allocations: 57.53 kB / 410 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-05/0.3304, allocations: 17.03 kB / 410 MB, free: 5.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001129/0.3315, allocations: 0.8481 MB / 410.9 MB, free: 4.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3315, allocations: 0 / 410.9 MB, free: 4.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001142/0.3327, allocations: 307.9 kB / 411.2 MB, free: 3.949 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 (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002159/0.3329, allocations: 134.6 kB / 411.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.3344, allocations: 0.9267 MB / 412.2 MB, free: 2.906 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3344, allocations: 3.938 kB / 412.2 MB, free: 2.902 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006464/0.335, allocations: 477.2 kB / 412.7 MB, free: 2.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/0.3364, allocations: 331.6 kB / 413 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003725/0.3401, allocations: 2.502 MB / 415.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000695/0.3408, allocations: 1.178 MB / 416.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005174/0.3414, allocations: 171.3 kB / 416.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.3415, allocations: 87.42 kB / 417 MB, free: 14.09 MB / 334.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3415, allocations: 0 / 417 MB, free: 14.09 MB / 334.1 MB Notification: Performance of Templates: time 0.02562/0.3672, allocations: 14.93 MB / 431.9 MB, free: 15.38 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches