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.001496/0.001496, allocations: 106.7 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001855/0.001855, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.4 MB, free: 9.137 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 64.48 kB / 306.5 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09617/0.09734, allocations: 50.53 MB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01167/0.109, allocations: 11.68 MB / 368.7 MB, free: 2.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.162/0.271, allocations: 3.205 MB / 371.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001533/0.2726, allocations: 37.28 kB / 371.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001614/0.2743, allocations: 0.5649 MB / 372.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001611/0.2759, allocations: 0.5797 MB / 373 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000739/0.2767, allocations: 351 kB / 373.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002806/0.2795, allocations: 2.236 MB / 375.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001508/0.281, allocations: 0.989 MB / 376.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001624/0.2826, allocations: 0.8518 MB / 377.5 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000856/0.2835, allocations: 0.9088 MB / 378.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002585/0.2838, allocations: 216.2 kB / 378.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004724/0.2842, allocations: 253.1 kB / 378.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002781/0.2845, allocations: 431.4 kB / 379.3 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008107/0.2853, allocations: 1.019 MB / 380.3 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003025/0.2884, allocations: 2.64 MB / 382.9 MB, free: 7.574 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2884, allocations: 5.094 kB / 382.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2884, allocations: 0 / 382.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.505e-05/0.2884, allocations: 0 / 382.9 MB, free: 7.57 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.003302/0.2917, allocations: 2.071 MB / 385 MB, free: 6.227 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.2918, allocations: 8.906 kB / 385 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007832/0.2926, allocations: 256.2 kB / 385.2 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.2941, allocations: 1.024 MB / 386.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.929e-05/0.2942, allocations: 117.4 kB / 386.4 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002287/0.2945, allocations: 159.3 kB / 386.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002408/0.2969, allocations: 1.493 MB / 388 MB, free: 4.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.375e-05/0.297, allocations: 15.91 kB / 388 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001201/0.2971, allocations: 62.19 kB / 388.1 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.283e-05/0.2971, allocations: 37.75 kB / 388.1 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001831/0.299, allocations: 0.9734 MB / 389.1 MB, free: 4.191 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007065/0.3061, allocations: 6.575 MB / 395.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008198/0.3069, allocations: 404.3 kB / 396.1 MB, free: 14.56 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004028/0.3073, allocations: 219.8 kB / 396.3 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.812e-05/0.3074, allocations: 8.484 kB / 396.3 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005462/0.3079, allocations: 269.8 kB / 396.6 MB, free: 14.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 3.487e-06/0.3079, allocations: 0 / 396.6 MB, free: 14.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003144/0.3111, allocations: 1.754 MB / 398.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.567e-05/0.3112, allocations: 167.5 kB / 398.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001708/0.3129, allocations: 1.278 MB / 399.8 MB, free: 12.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.045e-05/0.3129, allocations: 36.83 kB / 399.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006248/0.3136, allocations: 0.8734 MB / 400.7 MB, free: 11.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.3137, allocations: 208.8 kB / 400.9 MB, free: 11.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000298/0.314, allocations: 216.8 kB / 401.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3142, allocations: 356 kB / 401.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000432/0.3146, allocations: 226.2 kB / 401.7 MB, free: 10.58 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007981/0.3154, allocations: 0.8167 MB / 402.5 MB, free: 9.656 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.3167, allocations: 1.109 MB / 403.6 MB, free: 8.586 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.625e-06/0.3167, allocations: 6.125 kB / 403.6 MB, free: 8.586 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001703/0.3184, allocations: 1.168 MB / 404.8 MB, free: 7.969 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.52e-05/0.3185, allocations: 47.91 kB / 404.8 MB, free: 7.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.3185, allocations: 18.84 kB / 404.8 MB, free: 7.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002101/0.3187, allocations: 73.67 kB / 404.9 MB, free: 7.895 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006994/0.3194, allocations: 264.7 kB / 405.2 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001842/0.3213, allocations: 2.78 MB / 407.9 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008795/0.3222, allocations: 71.62 kB / 408 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.202e-05/0.3223, allocations: 62.19 kB / 408.1 MB, free: 4.895 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.0005118/0.3228, allocations: 349.3 kB / 408.4 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.3229, allocations: 138.3 kB / 408.5 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001024/0.324, allocations: 0.5528 MB / 409.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.324, allocations: 4 kB / 409.1 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.324, allocations: 0 / 409.1 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.324, allocations: 3.984 kB / 409.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002609/0.3266, allocations: 1.871 MB / 411 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.3266, allocations: 4 kB / 411 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004298/0.3271, allocations: 107.9 kB / 411.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001321/0.3272, allocations: 37.7 kB / 411.1 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.489e-05/0.3273, allocations: 16 kB / 411.1 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001818/0.3291, allocations: 2.753 MB / 413.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/0.3291, allocations: 11.88 kB / 413.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001368/0.3305, allocations: 0.9189 MB / 414.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003771/0.3309, allocations: 259.3 kB / 415.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001682/0.3311, allocations: 19.98 kB / 415.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005341/0.3316, allocations: 35.92 kB / 415.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.787e-05/0.3317, allocations: 47.88 kB / 415.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.833e-05/0.3317, allocations: 16 kB / 415.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001101/0.3328, allocations: 0.85 MB / 416 MB, free: 12.42 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.455e-06/0.3329, allocations: 0 / 416 MB, free: 12.42 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001056/0.3339, allocations: 311.9 kB / 416.3 MB, free: 12.12 MB / 334.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.0002087/0.3341, allocations: 127.2 kB / 416.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001516/0.3357, allocations: 0.949 MB / 417.4 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3357, allocations: 0 / 417.4 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000649/0.3363, allocations: 470.1 kB / 417.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.3378, allocations: 336.5 kB / 418.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004348/0.3422, allocations: 3.146 MB / 421.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007176/0.3429, allocations: 1.185 MB / 422.5 MB, free: 5.766 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006226/0.3435, allocations: 175.3 kB / 422.7 MB, free: 5.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.3437, allocations: 83.44 kB / 422.8 MB, free: 5.508 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3437, allocations: 0 / 422.8 MB, free: 5.508 MB / 334.1 MB Notification: Performance of Templates: time 0.02581/0.3695, allocations: 14.88 MB / 437.7 MB, free: 6.812 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