Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 91.95 kB / 16.65 MB, free: 6.586 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.00214/0.00214, allocations: 181.2 kB / 17.56 MB, free: 6.203 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.354/1.354, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002822/0.0002823, allocations: 7.938 kB / 301.4 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09615/0.09645, allocations: 50.42 MB / 351.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007249/0.1037, allocations: 6.653 MB / 358.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003641/0.1074, allocations: 2.298 MB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007528/0.1082, allocations: 19.94 kB / 360.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001394/0.1096, allocations: 445.7 kB / 361.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00125/0.1109, allocations: 325.7 kB / 361.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004885/0.1114, allocations: 179.8 kB / 361.7 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001242/0.1126, allocations: 1.143 MB / 362.9 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006323/0.1133, allocations: 434.7 kB / 363.3 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004495/0.1137, allocations: 390 kB / 363.7 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004439/0.1142, allocations: 429.8 kB / 364.1 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.646e-05/0.1143, allocations: 56 kB / 364.2 MB, free: 7.305 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002403/0.1145, allocations: 87.97 kB / 364.2 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.1147, allocations: 163.2 kB / 364.4 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004211/0.1151, allocations: 0.4952 MB / 364.9 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001207/0.1163, allocations: 1.346 MB / 366.2 MB, free: 5.203 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1163, allocations: 0 / 366.2 MB, free: 5.203 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1163, allocations: 0 / 366.2 MB, free: 5.203 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.691e-05/0.1164, allocations: 0 / 366.2 MB, free: 5.203 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001731/0.1181, allocations: 1.091 MB / 367.3 MB, free: 4.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.1181, allocations: 8.031 kB / 367.3 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004817/0.1186, allocations: 151.6 kB / 367.5 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008775/0.1195, allocations: 0.6377 MB / 368.1 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.292e-05/0.1196, allocations: 58.38 kB / 368.2 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.1197, allocations: 80.28 kB / 368.3 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.121, allocations: 0.7949 MB / 369.1 MB, free: 2.262 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/0.1211, allocations: 4 kB / 369.1 MB, free: 2.258 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.96e-05/0.1212, allocations: 28 kB / 369.1 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.1212, allocations: 20 kB / 369.1 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.1223, allocations: 0.5426 MB / 369.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1798/0.3021, allocations: 3.402 MB / 373.1 MB, free: 22.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004969/0.3026, allocations: 236.7 kB / 373.3 MB, free: 22.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002551/0.3029, allocations: 120.8 kB / 373.4 MB, free: 22.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.3029, allocations: 7.438 kB / 373.4 MB, free: 22.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.3029, allocations: 33.16 kB / 373.4 MB, free: 22.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.494e-06/0.3029, allocations: 1.062 kB / 373.4 MB, free: 22.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002228/0.3052, allocations: 1.083 MB / 374.5 MB, free: 21.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/0.3052, allocations: 85.45 kB / 374.6 MB, free: 21.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.3065, allocations: 0.7389 MB / 375.4 MB, free: 21.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.3065, allocations: 34.69 kB / 375.4 MB, free: 21.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002916/0.3068, allocations: 498 kB / 375.9 MB, free: 21.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.453e-05/0.3069, allocations: 109.6 kB / 376 MB, free: 21.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.754e-05/0.3069, allocations: 55 kB / 376 MB, free: 21.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.3071, allocations: 377.7 kB / 376.4 MB, free: 21.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002761/0.3073, allocations: 132.8 kB / 376.5 MB, free: 21.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003837/0.3077, allocations: 429.3 kB / 377 MB, free: 20.67 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006585/0.3084, allocations: 0.5858 MB / 377.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.3084, allocations: 3.062 kB / 377.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001013/0.3094, allocations: 0.6172 MB / 378.2 MB, free: 19.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.3095, allocations: 17.81 kB / 378.2 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.3095, allocations: 11.66 kB / 378.2 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001441/0.3096, allocations: 32.48 kB / 378.2 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000429/0.3101, allocations: 142.9 kB / 378.4 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007477/0.3108, allocations: 1.293 MB / 379.7 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004718/0.3113, allocations: 36.81 kB / 379.7 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.3114, allocations: 34.78 kB / 379.7 MB, free: 18.54 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002869/0.3117, allocations: 236.7 kB / 380 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.549e-05/0.3118, allocations: 68.91 kB / 380 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006301/0.3124, allocations: 338.4 kB / 380.4 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.3124, allocations: 3.031 kB / 380.4 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.3124, allocations: 1.719 kB / 380.4 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3124, allocations: 5.672 kB / 380.4 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001558/0.314, allocations: 1.122 MB / 381.5 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.314, allocations: 1.406 kB / 381.5 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002626/0.3143, allocations: 62.08 kB / 381.5 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.752e-05/0.3144, allocations: 22.41 kB / 381.6 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.3144, allocations: 15.25 kB / 381.6 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006067/0.315, allocations: 1.268 MB / 382.8 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.315, allocations: 6.188 kB / 382.9 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008632/0.3159, allocations: 0.5799 MB / 383.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/0.3161, allocations: 170.5 kB / 383.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.894e-05/0.3162, allocations: 13.59 kB / 383.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003209/0.3165, allocations: 23.16 kB / 383.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.112e-05/0.3166, allocations: 29.73 kB / 383.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.3166, allocations: 11.58 kB / 383.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006663/0.3173, allocations: 0.5008 MB / 384.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3173, allocations: 0 / 384.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000696/0.318, allocations: 158.1 kB / 384.3 MB, free: 15.38 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0001831/0.3182, allocations: 131.1 kB / 384.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008314/0.319, allocations: 478 kB / 384.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.319, allocations: 0 / 384.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003445/0.3194, allocations: 247.6 kB / 385.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.3205, allocations: 167.3 kB / 385.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.3227, allocations: 1.847 MB / 387.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/0.3231, allocations: 0.9404 MB / 388.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003691/0.3235, allocations: 89.66 kB / 388.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.3236, allocations: 48.02 kB / 388.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3236, allocations: 0 / 388.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of Templates: time 0.015/0.3386, allocations: 7.659 MB / 395.9 MB, free: 10.1 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches