Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007824/0.0007825, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.000865/0.0008651, allocations: 177 kB / 17.56 MB, free: 6.18 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.399/1.399, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002728/0.0002728, allocations: 18.14 kB / 301.4 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08813/0.08841, allocations: 50.41 MB / 351.8 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007695/0.09614, allocations: 7.567 MB / 359.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004195/0.1004, allocations: 2.579 MB / 362 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008203/0.1012, allocations: 23.94 kB / 362 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001489/0.1027, allocations: 0.4942 MB / 362.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001317/0.1041, allocations: 401.2 kB / 362.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005789/0.1046, allocations: 219.8 kB / 363.1 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.1063, allocations: 1.396 MB / 364.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007285/0.107, allocations: 0.4927 MB / 365 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006274/0.1077, allocations: 473.7 kB / 365.5 MB, free: 5.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005192/0.1082, allocations: 0.5091 MB / 366 MB, free: 5.234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.1083, allocations: 64 kB / 366 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002536/0.1086, allocations: 104 kB / 366.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001862/0.1088, allocations: 202.9 kB / 366.3 MB, free: 4.871 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005078/0.1093, allocations: 0.6001 MB / 366.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001349/0.1106, allocations: 1.615 MB / 368.5 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1106, allocations: 0 / 368.5 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1107, allocations: 0 / 368.5 MB, free: 2.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.1107, allocations: 4 kB / 368.6 MB, free: 2.637 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001964/0.1126, allocations: 1.258 MB / 369.8 MB, free: 1.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.1127, allocations: 16.03 kB / 369.8 MB, free: 1.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006417/0.1133, allocations: 187.3 kB / 370 MB, free: 1.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.1144, allocations: 0.7223 MB / 370.7 MB, free: 368 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.335e-05/0.1145, allocations: 74 kB / 370.8 MB, free: 292 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.1146, allocations: 103.9 kB / 370.9 MB, free: 188 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1769/0.2915, allocations: 0.9281 MB / 371.8 MB, free: 24.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.023e-05/0.2916, allocations: 6.938 kB / 371.8 MB, free: 24.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/0.2917, allocations: 39.78 kB / 371.9 MB, free: 24.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.364e-05/0.2917, allocations: 29.67 kB / 371.9 MB, free: 24.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001438/0.2932, allocations: 0.6464 MB / 372.6 MB, free: 24.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005358/0.2986, allocations: 3.947 MB / 376.5 MB, free: 22.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006381/0.2992, allocations: 447.6 kB / 376.9 MB, free: 21.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005332/0.2998, allocations: 268.1 kB / 377.2 MB, free: 21.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.214e-05/0.2998, allocations: 4.453 kB / 377.2 MB, free: 21.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.2998, allocations: 38.34 kB / 377.2 MB, free: 21.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.974e-06/0.2998, allocations: 0 / 377.2 MB, free: 21.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002655/0.3025, allocations: 1.411 MB / 378.7 MB, free: 20.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.735e-05/0.3026, allocations: 84.52 kB / 378.7 MB, free: 20.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001153/0.3037, allocations: 0.832 MB / 379.6 MB, free: 20.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/0.3038, allocations: 35.7 kB / 379.6 MB, free: 20.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004207/0.3042, allocations: 0.5548 MB / 380.2 MB, free: 19.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.3043, allocations: 165.1 kB / 380.3 MB, free: 19.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.3045, allocations: 62.88 kB / 380.4 MB, free: 19.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.3046, allocations: 332 kB / 380.7 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003766/0.305, allocations: 169.8 kB / 380.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00055/0.3055, allocations: 467.3 kB / 381.3 MB, free: 18.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000957/0.3065, allocations: 0.6642 MB / 382 MB, free: 18.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.064e-06/0.3065, allocations: 2.125 kB / 382 MB, free: 18.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001618/0.3081, allocations: 0.7804 MB / 382.8 MB, free: 17.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.3082, allocations: 11.88 kB / 382.8 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.804e-05/0.3082, allocations: 7.484 kB / 382.8 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003697/0.3086, allocations: 93.89 kB / 382.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005079/0.3091, allocations: 153.8 kB / 383 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.311, allocations: 2.87 MB / 385.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006648/0.3117, allocations: 42.38 kB / 385.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.216e-05/0.3118, allocations: 32.89 kB / 386 MB, free: 15.04 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006702/0.3124, allocations: 265.2 kB / 386.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00018/0.3126, allocations: 85.12 kB / 386.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001227/0.3139, allocations: 498.2 kB / 386.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.186e-06/0.3139, allocations: 5.781 kB / 386.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3139, allocations: 1.062 kB / 386.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3139, allocations: 1.875 kB / 386.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/0.3161, allocations: 1.449 MB / 388.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.3161, allocations: 2.281 kB / 388.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003156/0.3164, allocations: 73.53 kB / 388.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000201/0.3166, allocations: 71.86 kB / 388.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.3167, allocations: 9 kB / 388.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001695/0.3184, allocations: 2.863 MB / 391.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.3184, allocations: 6.453 kB / 391.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.3196, allocations: 0.7933 MB / 392.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.3198, allocations: 199.4 kB / 392.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.059e-05/0.3199, allocations: 12.7 kB / 392.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004245/0.3203, allocations: 31.36 kB / 392.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.195e-05/0.3204, allocations: 38.39 kB / 392.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.3205, allocations: 10.75 kB / 392.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007857/0.3212, allocations: 0.5683 MB / 392.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3213, allocations: 0 / 392.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009204/0.3222, allocations: 209.6 kB / 393.1 MB, free: 9.926 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.0001964/0.3224, allocations: 115.8 kB / 393.3 MB, free: 9.828 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.3235, allocations: 0.6952 MB / 393.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3235, allocations: 1.156 kB / 393.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006298/0.3241, allocations: 440.2 kB / 394.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.3255, allocations: 215.7 kB / 394.6 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.3281, allocations: 2.219 MB / 396.8 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.3285, allocations: 1.008 MB / 397.8 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004085/0.3289, allocations: 106 kB / 397.9 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.3291, allocations: 57.91 kB / 398 MB, free: 6.633 MB / 302.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3291, allocations: 0 / 398 MB, free: 6.633 MB / 302.1 MB Notification: Performance of Templates: time 0.01618/0.3453, allocations: 9.941 MB / 407.9 MB, free: 15.09 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches