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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 104 kB / 16.92 MB, free: 5.793 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.001232/0.001232, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.265/1.265, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009818/0.0009818, allocations: 52.05 kB / 300.7 MB, free: 5.699 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07642/0.07742, allocations: 49.43 MB / 350.2 MB, free: 4.254 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007965/0.08541, allocations: 7.128 MB / 357.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003453/0.08889, allocations: 2.356 MB / 359.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003969/0.08931, allocations: 16 kB / 359.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001085/0.09042, allocations: 0.4892 MB / 360.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006855/0.09112, allocations: 388.9 kB / 360.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003788/0.09151, allocations: 203.7 kB / 360.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.09263, allocations: 1.195 MB / 361.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000593/0.09324, allocations: 0.5035 MB / 362.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004448/0.09369, allocations: 458.1 kB / 362.9 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004416/0.09414, allocations: 0.4939 MB / 363.4 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001213/0.09427, allocations: 112 kB / 363.5 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002571/0.09453, allocations: 152 kB / 363.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.09469, allocations: 231.1 kB / 363.9 MB, free: 6.477 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004199/0.09512, allocations: 0.5482 MB / 364.4 MB, free: 5.926 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.09619, allocations: 1.402 MB / 365.8 MB, free: 4.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.09621, allocations: 3.938 kB / 365.8 MB, free: 4.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.09622, allocations: 0 / 365.8 MB, free: 4.516 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.09624, allocations: 7.938 kB / 365.8 MB, free: 4.508 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.001783/0.09803, allocations: 1.249 MB / 367.1 MB, free: 3.207 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.09807, allocations: 12.03 kB / 367.1 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001238/0.0982, allocations: 123.1 kB / 367.2 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000445/0.09865, allocations: 139.6 kB / 367.3 MB, free: 2.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008136/0.09948, allocations: 0.6416 MB / 368 MB, free: 2.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.103e-05/0.09953, allocations: 62.38 kB / 368 MB, free: 2.188 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.09964, allocations: 88.03 kB / 368.1 MB, free: 2.102 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.1008, allocations: 0.7754 MB / 368.9 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.1008, allocations: 4 kB / 368.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.159e-05/0.1009, allocations: 36 kB / 368.9 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.1009, allocations: 20 kB / 369 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009775/0.1019, allocations: 0.5192 MB / 369.5 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1519/0.2538, allocations: 3.384 MB / 372.9 MB, free: 23.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004854/0.2543, allocations: 236.3 kB / 373.1 MB, free: 23.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002256/0.2546, allocations: 113.8 kB / 373.2 MB, free: 23.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.2546, allocations: 3.172 kB / 373.2 MB, free: 23.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.414e-05/0.2546, allocations: 35.84 kB / 373.2 MB, free: 23.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.984e-06/0.2546, allocations: 1.375 kB / 373.2 MB, free: 23.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001886/0.2565, allocations: 1.035 MB / 374.3 MB, free: 23.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.906e-05/0.2566, allocations: 80.28 kB / 374.4 MB, free: 22.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009173/0.2575, allocations: 0.7375 MB / 375.1 MB, free: 22.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.2575, allocations: 31.67 kB / 375.1 MB, free: 22.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002318/0.2578, allocations: 0.4909 MB / 375.6 MB, free: 22.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.324e-05/0.2578, allocations: 102 kB / 375.7 MB, free: 22.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.258, allocations: 117.7 kB / 375.8 MB, free: 22.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.77e-05/0.2581, allocations: 379.6 kB / 376.2 MB, free: 21.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002609/0.2583, allocations: 126.2 kB / 376.3 MB, free: 21.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003405/0.2587, allocations: 420.6 kB / 376.7 MB, free: 21.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005946/0.2593, allocations: 0.5737 MB / 377.3 MB, free: 20.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.2593, allocations: 4.125 kB / 377.3 MB, free: 20.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009658/0.2603, allocations: 0.6107 MB / 377.9 MB, free: 20.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.2603, allocations: 8.625 kB / 377.9 MB, free: 20.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.2603, allocations: 13.84 kB / 377.9 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000141/0.2605, allocations: 33.45 kB / 378 MB, free: 20.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.2609, allocations: 145.5 kB / 378.1 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007189/0.2616, allocations: 1.386 MB / 379.5 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004353/0.2621, allocations: 34.38 kB / 379.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.21e-05/0.2621, allocations: 32.75 kB / 379.6 MB, free: 18.95 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.0002275/0.2624, allocations: 238.3 kB / 379.8 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.05e-05/0.2625, allocations: 69.23 kB / 379.9 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006077/0.2631, allocations: 325.5 kB / 380.2 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.2631, allocations: 10.14 kB / 380.2 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.2631, allocations: 3.828 kB / 380.2 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2631, allocations: 1.312 kB / 380.2 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001435/0.2645, allocations: 1.106 MB / 381.3 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.2646, allocations: 2.969 kB / 381.3 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002576/0.2648, allocations: 57.64 kB / 381.4 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.609e-05/0.2649, allocations: 27.28 kB / 381.4 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.2649, allocations: 7.312 kB / 381.4 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006183/0.2656, allocations: 1.368 MB / 382.8 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.2656, allocations: 5.906 kB / 382.8 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007833/0.2664, allocations: 0.551 MB / 383.3 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/0.2665, allocations: 180.4 kB / 383.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.603e-05/0.2666, allocations: 8.734 kB / 383.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003207/0.267, allocations: 19.73 kB / 383.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.588e-05/0.267, allocations: 25.7 kB / 383.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.2671, allocations: 11.81 kB / 383.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006032/0.2677, allocations: 0.5009 MB / 384.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.2677, allocations: 0 / 384.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006089/0.2683, allocations: 168.3 kB / 384.2 MB, free: 15.69 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.00101/0.2693, allocations: 1.124 MB / 385.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008472/0.2702, allocations: 471.1 kB / 385.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.2702, allocations: 5.094 kB / 385.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003316/0.2705, allocations: 236.1 kB / 386.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009413/0.2715, allocations: 183.3 kB / 386.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007685/0.2792, allocations: 6.63 MB / 392.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004929/0.2797, allocations: 0.9418 MB / 393.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004337/0.2801, allocations: 86.06 kB / 393.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003283/0.2805, allocations: 300.1 kB / 394.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2805, allocations: 3.609 kB / 394.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3449/0.6254, allocations: 15.11 MB / 409.3 MB, free: 13.52 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.37, allocations: 10.5 kB / 409.3 MB, free: 13.51 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/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