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.001082/0.001082, allocations: 115.4 kB / 17.69 MB, free: 5.098 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.001037/0.001037, allocations: 191 kB / 18.63 MB, free: 4.25 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.381/1.381, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000989/0.000989, allocations: 46.53 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09296/0.09397, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008965/0.103, allocations: 8.079 MB / 359.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003847/0.1068, allocations: 2.63 MB / 362.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004817/0.1073, allocations: 23.94 kB / 362.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.1086, allocations: 0.5558 MB / 362.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008233/0.1094, allocations: 460.3 kB / 363.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003948/0.1098, allocations: 247.7 kB / 363.5 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001187/0.111, allocations: 1.488 MB / 365 MB, free: 6.168 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007005/0.1117, allocations: 0.5923 MB / 365.6 MB, free: 5.555 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005352/0.1123, allocations: 0.5486 MB / 366.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005711/0.1128, allocations: 0.5949 MB / 366.7 MB, free: 4.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001469/0.113, allocations: 140 kB / 366.8 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000285/0.1133, allocations: 180 kB / 367 MB, free: 4.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001904/0.1135, allocations: 279 kB / 367.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005674/0.1141, allocations: 0.6609 MB / 368 MB, free: 3.156 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001747/0.1158, allocations: 1.717 MB / 369.7 MB, free: 1.434 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1158, allocations: 4 kB / 369.7 MB, free: 1.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1158, allocations: 4 kB / 369.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.1159, allocations: 0 / 369.7 MB, free: 1.426 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.1601/0.2759, allocations: 1.45 MB / 371.1 MB, free: 25.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.276, allocations: 13.58 kB / 371.1 MB, free: 25.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008198/0.2768, allocations: 186.2 kB / 371.3 MB, free: 25.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.2782, allocations: 0.7393 MB / 372.1 MB, free: 25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.671e-05/0.2782, allocations: 78.44 kB / 372.1 MB, free: 24.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/0.2784, allocations: 96.97 kB / 372.2 MB, free: 24.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.2799, allocations: 0.935 MB / 373.2 MB, free: 24.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.446e-05/0.28, allocations: 9.469 kB / 373.2 MB, free: 24.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.567e-05/0.2801, allocations: 46.38 kB / 373.2 MB, free: 24.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.569e-05/0.2801, allocations: 24 kB / 373.3 MB, free: 24.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001176/0.2813, allocations: 0.6311 MB / 373.9 MB, free: 24.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005106/0.2864, allocations: 3.871 MB / 377.8 MB, free: 21.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008084/0.2872, allocations: 445.6 kB / 378.2 MB, free: 21.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006806/0.2879, allocations: 263.1 kB / 378.4 MB, free: 21.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.858e-05/0.288, allocations: 9.797 kB / 378.5 MB, free: 21.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.2881, allocations: 37.27 kB / 378.5 MB, free: 21.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.956e-06/0.2881, allocations: 3.125 kB / 378.5 MB, free: 21.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002826/0.2909, allocations: 1.388 MB / 379.9 MB, free: 20.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.291, allocations: 83.47 kB / 380 MB, free: 20.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.292, allocations: 0.8266 MB / 380.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/0.2921, allocations: 32.36 kB / 380.8 MB, free: 20.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00032/0.2924, allocations: 0.5602 MB / 381.4 MB, free: 19.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.2925, allocations: 157.3 kB / 381.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/0.2927, allocations: 130.4 kB / 381.7 MB, free: 19.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.569e-05/0.2928, allocations: 337.7 kB / 382 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003196/0.2931, allocations: 164.9 kB / 382.2 MB, free: 19.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004295/0.2935, allocations: 459.8 kB / 382.6 MB, free: 18.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007136/0.2943, allocations: 0.6627 MB / 383.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2943, allocations: 2.781 kB / 383.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001241/0.2955, allocations: 0.7706 MB / 384 MB, free: 17.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.2956, allocations: 12.25 kB / 384.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.2956, allocations: 10.59 kB / 384.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000253/0.2958, allocations: 80.11 kB / 384.1 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004817/0.2963, allocations: 159.4 kB / 384.3 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/0.2981, allocations: 3.137 MB / 387.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000569/0.2986, allocations: 35.22 kB / 387.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.252e-05/0.2987, allocations: 32.91 kB / 387.5 MB, free: 14.57 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.0003276/0.299, allocations: 262.9 kB / 387.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.2991, allocations: 89.45 kB / 387.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008932/0.3, allocations: 484.8 kB / 388.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.3001, allocations: 8.125 kB / 388.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3001, allocations: 1.188 kB / 388.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.3001, allocations: 7.438 kB / 388.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00211/0.3022, allocations: 1.434 MB / 389.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.3022, allocations: 9.578 kB / 389.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003086/0.3025, allocations: 68.56 kB / 389.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000195/0.3027, allocations: 80.31 kB / 389.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.3028, allocations: 7.844 kB / 389.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001607/0.3044, allocations: 3.114 MB / 393 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.3044, allocations: 4.438 kB / 393 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.3055, allocations: 0.7708 MB / 393.8 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002559/0.3058, allocations: 195.6 kB / 394 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.621e-05/0.3059, allocations: 10 kB / 394 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000423/0.3063, allocations: 30.86 kB / 394 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.196e-05/0.3064, allocations: 34.53 kB / 394.1 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.3065, allocations: 14.86 kB / 394.1 MB, free: 9.484 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007343/0.3072, allocations: 0.5619 MB / 394.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3072, allocations: 1.219 kB / 394.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008748/0.3081, allocations: 205.7 kB / 394.9 MB, free: 9.219 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.0001798/0.3083, allocations: 124.9 kB / 395 MB, free: 9.113 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009947/0.3093, allocations: 0.6923 MB / 395.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.3093, allocations: 0.5625 kB / 395.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005005/0.3098, allocations: 438.2 kB / 396.1 MB, free: 8.359 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009136/0.3107, allocations: 232.4 kB / 396.3 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00221/0.3129, allocations: 1.699 MB / 398 MB, free: 7.168 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.3133, allocations: 1.009 MB / 399 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003216/0.3137, allocations: 103.3 kB / 399.1 MB, free: 6.277 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.3138, allocations: 58.67 kB / 399.2 MB, free: 6.266 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3138, allocations: 0 / 399.2 MB, free: 6.266 MB / 302.1 MB Notification: Performance of Templates: time 0.01604/0.3298, allocations: 10.52 MB / 409.7 MB, free: 13.52 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/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