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.001142/0.001142, allocations: 117.1 kB / 16.63 MB, free: 6.812 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.001095/0.001095, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.231/1.231, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009832/0.0009833, allocations: 43.28 kB / 300.2 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07014/0.07114, allocations: 49.45 MB / 349.7 MB, free: 4.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.007483/0.07865, allocations: 7.938 MB / 357.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002878/0.08155, allocations: 2.564 MB / 360.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000319/0.08188, allocations: 23.94 kB / 360.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001014/0.08291, allocations: 494.1 kB / 360.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006316/0.08356, allocations: 401.1 kB / 361.1 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003065/0.08387, allocations: 211.8 kB / 361.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.0849, allocations: 1.424 MB / 362.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006107/0.08552, allocations: 0.5923 MB / 363.3 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000441/0.08596, allocations: 0.5446 MB / 363.9 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004517/0.08643, allocations: 0.5794 MB / 364.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001243/0.08656, allocations: 136 kB / 364.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002314/0.08679, allocations: 176 kB / 364.7 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.08696, allocations: 267 kB / 365 MB, free: 5.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004317/0.0874, allocations: 0.657 MB / 365.7 MB, free: 4.484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.08852, allocations: 1.67 MB / 367.3 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.08854, allocations: 4 kB / 367.3 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.08854, allocations: 0 / 367.3 MB, free: 2.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.08856, allocations: 0 / 367.3 MB, free: 2.805 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.001811/0.09038, allocations: 1.437 MB / 368.8 MB, free: 1.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.09041, allocations: 8.031 kB / 368.8 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001372/0.09056, allocations: 148.3 kB / 368.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004663/0.09103, allocations: 171.3 kB / 369.1 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008288/0.09187, allocations: 0.7181 MB / 369.8 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.193e-05/0.09192, allocations: 66 kB / 369.9 MB, free: 160 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.09203, allocations: 104 kB / 370 MB, free: 56 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1139/0.2059, allocations: 0.9155 MB / 370.9 MB, free: 25.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.204e-05/0.206, allocations: 5.281 kB / 370.9 MB, free: 25.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.303e-05/0.2061, allocations: 41.28 kB / 370.9 MB, free: 25.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.956e-05/0.2061, allocations: 24.09 kB / 371 MB, free: 25.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.2071, allocations: 0.6244 MB / 371.6 MB, free: 25.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003712/0.2108, allocations: 3.912 MB / 375.5 MB, free: 22.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004263/0.2113, allocations: 348.3 kB / 375.8 MB, free: 22.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.2115, allocations: 147.8 kB / 376 MB, free: 22.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.2115, allocations: 4.125 kB / 376 MB, free: 22.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.404e-05/0.2116, allocations: 40.8 kB / 376 MB, free: 22.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.623e-06/0.2116, allocations: 1.375 kB / 376 MB, free: 22.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001695/0.2133, allocations: 1.186 MB / 377.2 MB, free: 21.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.568e-05/0.2133, allocations: 81.42 kB / 377.3 MB, free: 21.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008244/0.2141, allocations: 0.8271 MB / 378.1 MB, free: 21.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.2142, allocations: 34.89 kB / 378.2 MB, free: 21.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002332/0.2144, allocations: 0.5642 MB / 378.7 MB, free: 20.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.843e-05/0.2145, allocations: 132.6 kB / 378.9 MB, free: 20.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.2146, allocations: 126.6 kB / 379 MB, free: 20.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.575e-05/0.2146, allocations: 329 kB / 379.3 MB, free: 20.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002598/0.2149, allocations: 150.7 kB / 379.4 MB, free: 20.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000344/0.2153, allocations: 466.6 kB / 379.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005998/0.2159, allocations: 0.6338 MB / 380.5 MB, free: 19.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.2159, allocations: 3.188 kB / 380.5 MB, free: 19.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0009288/0.2168, allocations: 0.6931 MB / 381.2 MB, free: 18.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.2168, allocations: 10.27 kB / 381.2 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.2169, allocations: 17.59 kB / 381.3 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001197/0.217, allocations: 29.36 kB / 381.3 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004168/0.2174, allocations: 160.1 kB / 381.4 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000597/0.218, allocations: 1.385 MB / 382.8 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004081/0.2184, allocations: 37.95 kB / 382.9 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.399e-05/0.2185, allocations: 36.78 kB / 382.9 MB, free: 17.5 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.0002186/0.2187, allocations: 257.8 kB / 383.2 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.763e-05/0.2188, allocations: 81.94 kB / 383.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005788/0.2194, allocations: 379.7 kB / 383.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2194, allocations: 8.188 kB / 383.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.2194, allocations: 2.031 kB / 383.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.2194, allocations: 3.047 kB / 383.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001408/0.2208, allocations: 1.26 MB / 384.9 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2208, allocations: 2.031 kB / 384.9 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002758/0.2211, allocations: 74.3 kB / 385 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.393e-05/0.2212, allocations: 29.14 kB / 385 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.879e-05/0.2212, allocations: 9.156 kB / 385 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005015/0.2217, allocations: 1.378 MB / 386.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.2217, allocations: 2.766 kB / 386.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000741/0.2225, allocations: 0.6416 MB / 387 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.2226, allocations: 187.4 kB / 387.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.665e-05/0.2227, allocations: 9.109 kB / 387.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003343/0.2231, allocations: 22.59 kB / 387.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.304e-05/0.2232, allocations: 28.23 kB / 387.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.2232, allocations: 14.48 kB / 387.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005771/0.2238, allocations: 0.563 MB / 387.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2238, allocations: 0 / 387.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005653/0.2243, allocations: 191.1 kB / 388 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.0009495/0.2253, allocations: 1.201 MB / 389.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007627/0.2261, allocations: 0.518 MB / 389.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.2261, allocations: 1.281 kB / 389.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003157/0.2264, allocations: 271.7 kB / 390 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.0009099/0.2273, allocations: 210.5 kB / 390.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008001/0.2353, allocations: 7.98 MB / 398.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.2357, allocations: 0.9911 MB / 399.2 MB, free: 6.273 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003326/0.236, allocations: 104.8 kB / 399.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003035/0.2363, allocations: 370.5 kB / 399.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2363, allocations: 0 / 399.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.047/1.284, allocations: 17.33 MB / 417 MB, free: 5.777 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002837/1.284, allocations: 237.4 kB / 417.2 MB, free: 5.52 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.592/4.876, allocations: 6.906 kB / 417.2 MB, free: 5.52 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