Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_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.00106/0.00106, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.0009973/0.0009973, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.311/1.311, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.001231, allocations: 41.84 kB / 300.1 MB, free: 6.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09386/0.09511, allocations: 49.45 MB / 349.5 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.008961/0.1041, allocations: 7.942 MB / 357.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004439/0.1086, allocations: 2.575 MB / 360 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001069/0.1097, allocations: 23.94 kB / 360.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001949/0.1117, allocations: 490.1 kB / 360.5 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001612/0.1133, allocations: 401.2 kB / 360.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006741/0.114, allocations: 207.8 kB / 361.1 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002079/0.1161, allocations: 1.361 MB / 362.5 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009527/0.1171, allocations: 0.4967 MB / 363 MB, free: 7.215 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008332/0.1179, allocations: 497.7 kB / 363.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007772/0.1187, allocations: 0.5482 MB / 364 MB, free: 6.176 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002138/0.119, allocations: 84 kB / 364.1 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004711/0.1194, allocations: 128 kB / 364.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.1197, allocations: 230.9 kB / 364.5 MB, free: 5.742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007859/0.1205, allocations: 0.5907 MB / 365 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001447/0.1219, allocations: 1.639 MB / 366.7 MB, free: 3.504 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1219, allocations: 0 / 366.7 MB, free: 3.504 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1219, allocations: 0 / 366.7 MB, free: 3.504 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.678e-05/0.122, allocations: 0 / 366.7 MB, free: 3.504 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002671/0.1247, allocations: 1.429 MB / 368.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1247, allocations: 8.031 kB / 368.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002008/0.1249, allocations: 148.3 kB / 368.3 MB, free: 1.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006059/0.1255, allocations: 171.3 kB / 368.4 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.1267, allocations: 0.7142 MB / 369.1 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.979e-05/0.1267, allocations: 74 kB / 369.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.1269, allocations: 95.98 kB / 369.3 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1402/0.2671, allocations: 0.9217 MB / 370.2 MB, free: 25.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.064e-05/0.2672, allocations: 5.125 kB / 370.2 MB, free: 25.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.382e-05/0.2673, allocations: 39 kB / 370.3 MB, free: 25.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.616e-05/0.2673, allocations: 24.22 kB / 370.3 MB, free: 25.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00135/0.2687, allocations: 0.6293 MB / 370.9 MB, free: 25.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004652/0.2734, allocations: 3.917 MB / 374.8 MB, free: 22.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005237/0.2739, allocations: 354.2 kB / 375.2 MB, free: 22.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000267/0.2742, allocations: 144.9 kB / 375.3 MB, free: 22.4 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.037e-05/0.2742, allocations: 7.719 kB / 375.3 MB, free: 22.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.743e-05/0.2742, allocations: 36.89 kB / 375.4 MB, free: 22.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 3.156e-06/0.2742, allocations: 3.75 kB / 375.4 MB, free: 22.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001978/0.2762, allocations: 1.195 MB / 376.6 MB, free: 21.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.2763, allocations: 81.23 kB / 376.7 MB, free: 21.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009915/0.2773, allocations: 0.824 MB / 377.5 MB, free: 21.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.2773, allocations: 30.73 kB / 377.5 MB, free: 21.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002912/0.2776, allocations: 0.5699 MB / 378.1 MB, free: 20.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.869e-05/0.2777, allocations: 131.6 kB / 378.2 MB, free: 20.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/0.2778, allocations: 124.4 kB / 378.3 MB, free: 20.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.046e-05/0.2779, allocations: 331.1 kB / 378.7 MB, free: 20.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.2782, allocations: 149 kB / 378.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003814/0.2786, allocations: 461.2 kB / 379.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006702/0.2793, allocations: 0.64 MB / 379.9 MB, free: 19.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.2793, allocations: 2.406 kB / 379.9 MB, free: 19.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001104/0.2804, allocations: 0.688 MB / 380.6 MB, free: 18.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.2804, allocations: 10.72 kB / 380.6 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.2804, allocations: 11.12 kB / 380.6 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001514/0.2806, allocations: 38.45 kB / 380.6 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004665/0.2811, allocations: 155.7 kB / 380.8 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006744/0.2818, allocations: 1.294 MB / 382.1 MB, free: 17.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004597/0.2822, allocations: 30.66 kB / 382.1 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.861e-05/0.2823, allocations: 36.42 kB / 382.1 MB, free: 17.41 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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): 83 * 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.0002687/0.2826, allocations: 265 kB / 382.4 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.943e-05/0.2827, allocations: 87.92 kB / 382.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006506/0.2833, allocations: 370.3 kB / 382.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.2833, allocations: 3.375 kB / 382.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.2833, allocations: 0.5625 kB / 382.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.2834, allocations: 7.219 kB / 382.9 MB, free: 16.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.285, allocations: 1.268 MB / 384.1 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.285, allocations: 6.281 kB / 384.1 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003177/0.2853, allocations: 73 kB / 384.2 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.465e-05/0.2854, allocations: 23.98 kB / 384.2 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.2855, allocations: 9.594 kB / 384.2 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005518/0.286, allocations: 1.277 MB / 385.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.286, allocations: 1.406 kB / 385.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008638/0.2869, allocations: 0.6341 MB / 386.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001801/0.2871, allocations: 187.7 kB / 386.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.266e-05/0.2872, allocations: 17.38 kB / 386.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003648/0.2876, allocations: 23.17 kB / 386.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.809e-05/0.2876, allocations: 29.59 kB / 386.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.855e-05/0.2877, allocations: 9.5 kB / 386.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007061/0.2884, allocations: 0.567 MB / 387 MB, free: 14.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2884, allocations: 0 / 387 MB, free: 14.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006849/0.2891, allocations: 188 kB / 387.2 MB, free: 14.06 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,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 (34): * Single equations (assignments): 33 * 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.001145/0.2902, allocations: 1.196 MB / 388.4 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008745/0.2911, allocations: 0.5001 MB / 388.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2911, allocations: 2.125 kB / 388.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003557/0.2915, allocations: 273.3 kB / 389.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.2925, allocations: 190.4 kB / 389.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009693/0.3022, allocations: 7.995 MB / 397.3 MB, free: 7.203 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/0.3027, allocations: 0.9916 MB / 398.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004305/0.3031, allocations: 101.8 kB / 398.4 MB, free: 6.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000336/0.3035, allocations: 368.7 kB / 398.8 MB, free: 6.004 MB / 302.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3035, allocations: 0 / 398.8 MB, free: 6.004 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.407/2.71, allocations: 16.89 MB / 415.7 MB, free: 6.852 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000281/2.71, allocations: 248.8 kB / 415.9 MB, free: 6.586 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.353/5.063, allocations: 4 kB / 415.9 MB, free: 6.582 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches