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.001348/0.001348, allocations: 112.2 kB / 17.74 MB, free: 5.355 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.00141/0.00141, allocations: 183.1 kB / 18.67 MB, free: 4.441 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.34/1.34, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001071, allocations: 55.91 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2273, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0128/0.2402, allocations: 11.75 MB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006419/0.2466, allocations: 3.218 MB / 416.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001478/0.2482, allocations: 39.88 kB / 416.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001985/0.2502, allocations: 0.6401 MB / 417.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00227/0.2525, allocations: 0.6743 MB / 417.7 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001237/0.2537, allocations: 395.5 kB / 418.1 MB, free: 8.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003109/0.2569, allocations: 2.257 MB / 420.4 MB, free: 5.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001652/0.2585, allocations: 0.985 MB / 421.4 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001309/0.2599, allocations: 0.8443 MB / 422.2 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001652/0.2615, allocations: 0.9139 MB / 423.1 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005115/0.2621, allocations: 220 kB / 423.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008557/0.2629, allocations: 252 kB / 423.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005013/0.2635, allocations: 438.4 kB / 424 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001657/0.2651, allocations: 1.019 MB / 425 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003455/0.2686, allocations: 2.678 MB / 427.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.2686, allocations: 0 / 427.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2686, allocations: 0 / 427.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.204e-05/0.2687, allocations: 0 / 427.7 MB, free: 14.43 MB / 350.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.004239/0.273, allocations: 2.064 MB / 429.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.273, allocations: 15.83 kB / 429.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008742/0.2739, allocations: 254.5 kB / 430 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001851/0.2758, allocations: 1.044 MB / 431.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.308e-05/0.2759, allocations: 115.5 kB / 431.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002328/0.2761, allocations: 163.8 kB / 431.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002646/0.2788, allocations: 1.487 MB / 432.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.41e-05/0.2789, allocations: 7.906 kB / 432.8 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001379/0.279, allocations: 64 kB / 432.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.034e-05/0.279, allocations: 39.98 kB / 432.9 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001923/0.281, allocations: 0.9785 MB / 433.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008252/0.2892, allocations: 6.516 MB / 440.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007957/0.2901, allocations: 396.6 kB / 440.8 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004232/0.2905, allocations: 232 kB / 441.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.2906, allocations: 12.38 kB / 441.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004982/0.2911, allocations: 268.7 kB / 441.3 MB, free: 240 kB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 4.017e-06/0.2911, allocations: 3.984 kB / 441.3 MB, free: 236 kB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003359/0.2945, allocations: 1.758 MB / 443.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.67e-05/0.2946, allocations: 166.8 kB / 443.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001811/0.2964, allocations: 1.277 MB / 444.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.2965, allocations: 33.7 kB / 444.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006692/0.2971, allocations: 0.8751 MB / 445.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000164/0.2973, allocations: 209.2 kB / 445.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002671/0.2976, allocations: 214.6 kB / 445.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.2977, allocations: 353.9 kB / 446.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004716/0.2982, allocations: 234.5 kB / 446.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008286/0.2991, allocations: 0.7995 MB / 447.2 MB, free: 9.879 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.3005, allocations: 1.122 MB / 448.4 MB, free: 8.484 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/0.3005, allocations: 4 kB / 448.4 MB, free: 8.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0021/0.3026, allocations: 1.177 MB / 449.5 MB, free: 7.285 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.065e-05/0.3027, allocations: 37.7 kB / 449.6 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.047e-05/0.3027, allocations: 20 kB / 449.6 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002446/0.3029, allocations: 65.64 kB / 449.7 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007929/0.3037, allocations: 271.5 kB / 449.9 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001989/0.3057, allocations: 2.765 MB / 452.7 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.3068, allocations: 75.97 kB / 452.8 MB, free: 3.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.314e-05/0.3069, allocations: 60 kB / 452.8 MB, free: 3.711 MB / 366.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.0005972/0.3075, allocations: 357.3 kB / 453.2 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002496/0.3078, allocations: 134.4 kB / 453.3 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001106/0.3089, allocations: 0.5489 MB / 453.8 MB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.3089, allocations: 4 kB / 453.8 MB, free: 2.645 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3089, allocations: 4 kB / 453.9 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3089, allocations: 3.984 kB / 453.9 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00296/0.3119, allocations: 1.87 MB / 455.7 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.3119, allocations: 4 kB / 455.7 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004316/0.3124, allocations: 107.8 kB / 455.8 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001611/0.3125, allocations: 42.17 kB / 455.9 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.607e-05/0.3126, allocations: 19.94 kB / 455.9 MB, free: 484 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00196/0.3145, allocations: 2.753 MB / 458.6 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.037e-05/0.3146, allocations: 11.94 kB / 458.7 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/0.3162, allocations: 0.9161 MB / 459.6 MB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000568/0.3168, allocations: 251.5 kB / 459.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003009/0.3171, allocations: 20 kB / 459.8 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006616/0.3177, allocations: 31.97 kB / 459.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.3179, allocations: 51.81 kB / 459.9 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.09e-05/0.3179, allocations: 20 kB / 459.9 MB, free: 12.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001395/0.3193, allocations: 0.85 MB / 460.8 MB, free: 11.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3193, allocations: 0 / 460.8 MB, free: 11.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001256/0.3206, allocations: 304 kB / 461.1 MB, free: 10.91 MB / 382.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.0002829/0.3209, allocations: 139 kB / 461.2 MB, free: 10.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.3225, allocations: 0.9331 MB / 462.2 MB, free: 9.793 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3226, allocations: 448 / 462.2 MB, free: 9.793 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000656/0.3232, allocations: 460.9 kB / 462.6 MB, free: 9.316 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.325, allocations: 341.2 kB / 462.9 MB, free: 8.992 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004432/0.3294, allocations: 2.54 MB / 465.5 MB, free: 6.363 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009235/0.3304, allocations: 1.178 MB / 466.7 MB, free: 5.152 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002785/0.3307, allocations: 95.42 kB / 466.8 MB, free: 5.059 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3307, allocations: 0 / 466.8 MB, free: 5.059 MB / 382.1 MB Notification: Performance of Templates: time 0.03771/0.3684, allocations: 31.69 MB / 498.4 MB, free: 5.422 MB / 414.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 -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