Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001204/0.001204, allocations: 106.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.4 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 59.33 kB / 306.6 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0895/0.09085, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.009975/0.1009, allocations: 7.967 MB / 365.1 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005197/0.1061, allocations: 2.606 MB / 367.7 MB, free: 3.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001107/0.1072, allocations: 23.94 kB / 367.7 MB, free: 3.637 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002148/0.1094, allocations: 0.4903 MB / 368.2 MB, free: 3.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00167/0.1111, allocations: 397.2 kB / 368.6 MB, free: 2.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000571/0.1117, allocations: 203.9 kB / 368.8 MB, free: 2.555 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001678/0.1134, allocations: 1.42 MB / 370.2 MB, free: 1.129 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008831/0.1143, allocations: 0.5885 MB / 370.8 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.189/0.3033, allocations: 0.5338 MB / 371.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009223/0.3043, allocations: 0.5813 MB / 371.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002974/0.3046, allocations: 136.8 kB / 372 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003484/0.305, allocations: 174.7 kB / 372.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.3051, allocations: 271.8 kB / 372.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005503/0.3057, allocations: 0.6519 MB / 373.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001789/0.3075, allocations: 1.68 MB / 374.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3075, allocations: 3.281 kB / 374.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3075, allocations: 0 / 374.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.716e-05/0.3076, allocations: 0 / 374.8 MB, free: 10.37 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.002504/0.3101, allocations: 1.423 MB / 376.2 MB, free: 9.602 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.3101, allocations: 13.91 kB / 376.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001596/0.3103, allocations: 147.4 kB / 376.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005549/0.3108, allocations: 178.2 kB / 376.6 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009427/0.3118, allocations: 0.7142 MB / 377.3 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.714e-05/0.3119, allocations: 72.56 kB / 377.3 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.312, allocations: 92.84 kB / 377.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.3135, allocations: 0.9242 MB / 378.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.381e-05/0.3136, allocations: 10.77 kB / 378.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.593e-05/0.3137, allocations: 38.69 kB / 378.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.249e-05/0.3137, allocations: 24.97 kB / 378.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.3149, allocations: 0.6212 MB / 379 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004394/0.3193, allocations: 3.911 MB / 383 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005558/0.3198, allocations: 356.2 kB / 383.3 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.3201, allocations: 152 kB / 383.5 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.766e-05/0.3202, allocations: 6.734 kB / 383.5 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.864e-05/0.3202, allocations: 37.25 kB / 383.5 MB, free: 6.219 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.803e-06/0.3202, allocations: 0 / 383.5 MB, free: 6.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002238/0.3224, allocations: 1.188 MB / 384.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.3225, allocations: 83.67 kB / 384.8 MB, free: 5.348 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.3235, allocations: 0.8236 MB / 385.6 MB, free: 4.988 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.3235, allocations: 33.86 kB / 385.6 MB, free: 4.953 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002925/0.3238, allocations: 0.5682 MB / 386.2 MB, free: 4.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.334e-05/0.3239, allocations: 136.3 kB / 386.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.3241, allocations: 124.7 kB / 386.4 MB, free: 4.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.085e-05/0.3241, allocations: 336.9 kB / 386.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002825/0.3244, allocations: 148.7 kB / 386.9 MB, free: 3.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003944/0.3248, allocations: 467.8 kB / 387.4 MB, free: 3.496 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007649/0.3256, allocations: 0.6303 MB / 388 MB, free: 2.977 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.3256, allocations: 2.188 kB / 388 MB, free: 2.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001073/0.3267, allocations: 0.6887 MB / 388.7 MB, free: 2.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.3267, allocations: 9.75 kB / 388.7 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.3267, allocations: 10.22 kB / 388.7 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001432/0.3269, allocations: 35.66 kB / 388.8 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004568/0.3273, allocations: 159.7 kB / 388.9 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007127/0.3281, allocations: 1.396 MB / 390.3 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005077/0.3286, allocations: 41.72 kB / 390.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.357e-05/0.3286, allocations: 32.47 kB / 390.4 MB, free: 1.289 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.0003111/0.329, allocations: 260.3 kB / 390.6 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.3291, allocations: 79.09 kB / 390.7 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006485/0.3297, allocations: 377.2 kB / 391.1 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3297, allocations: 3.406 kB / 391.1 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.3297, allocations: 5.125 kB / 391.1 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.3298, allocations: 3 kB / 391.1 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.3314, allocations: 1.265 MB / 392.4 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3314, allocations: 2.188 kB / 392.4 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000308/0.3317, allocations: 78.08 kB / 392.4 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.725e-05/0.3318, allocations: 23.09 kB / 392.5 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.3319, allocations: 12.12 kB / 392.5 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008669/0.3327, allocations: 1.367 MB / 393.8 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3328, allocations: 6.312 kB / 393.8 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009437/0.3337, allocations: 0.6305 MB / 394.5 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000231/0.3339, allocations: 185.9 kB / 394.6 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.3341, allocations: 19.5 kB / 394.7 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003655/0.3344, allocations: 20.39 kB / 394.7 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.472e-05/0.3345, allocations: 34.3 kB / 394.7 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.3345, allocations: 10.03 kB / 394.7 MB, free: 14.16 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007283/0.3353, allocations: 0.5614 MB / 395.3 MB, free: 13.92 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3353, allocations: 0 / 395.3 MB, free: 13.92 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007404/0.336, allocations: 187.6 kB / 395.5 MB, free: 13.9 MB / 318.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.00127/0.3373, allocations: 1.204 MB / 396.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009211/0.3382, allocations: 0.5205 MB / 397.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.3383, allocations: 4.375 kB / 397.2 MB, free: 12.72 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003826/0.3386, allocations: 266.1 kB / 397.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.3398, allocations: 216.4 kB / 397.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.3523, allocations: 7.98 MB / 405.7 MB, free: 6.695 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006148/0.3529, allocations: 0.9967 MB / 406.7 MB, free: 5.863 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004491/0.3534, allocations: 104.9 kB / 406.8 MB, free: 5.805 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004403/0.3538, allocations: 363.3 kB / 407.1 MB, free: 5.496 MB / 318.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3538, allocations: 3.188 kB / 407.1 MB, free: 5.496 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06361/0.4175, allocations: 17.34 MB / 424.5 MB, free: 4.945 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002324/0.4177, allocations: 239 kB / 424.7 MB, free: 4.691 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.324/2.742, allocations: 0 / 424.7 MB, free: 4.691 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches