Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",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.001121/0.001121, allocations: 108.7 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.001199/0.001199, 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.282/1.282, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 44.25 kB / 300.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08287/0.08436, allocations: 49.45 MB / 349.5 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.007724/0.09212, allocations: 7.926 MB / 357.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003769/0.09591, allocations: 2.602 MB / 360 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007554/0.09669, allocations: 23.94 kB / 360.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001296/0.09804, allocations: 449.6 kB / 360.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001001/0.09906, allocations: 345.5 kB / 360.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004478/0.09952, allocations: 191.8 kB / 361 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001181/0.1007, allocations: 1.169 MB / 362.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005894/0.1013, allocations: 471.8 kB / 362.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005444/0.1019, allocations: 450 kB / 363.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005613/0.1024, allocations: 497.7 kB / 363.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001406/0.1026, allocations: 76 kB / 363.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002908/0.1029, allocations: 108 kB / 363.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.103, allocations: 199.1 kB / 364 MB, free: 6.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004883/0.1035, allocations: 0.5246 MB / 364.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.1046, allocations: 1.405 MB / 365.9 MB, free: 4.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1046, allocations: 0 / 365.9 MB, free: 4.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1046, allocations: 0 / 365.9 MB, free: 4.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.034e-05/0.1046, allocations: 4 kB / 365.9 MB, free: 4.184 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.00212/0.1068, allocations: 1.309 MB / 367.2 MB, free: 2.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1068, allocations: 11.97 kB / 367.2 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001418/0.107, allocations: 131.5 kB / 367.3 MB, free: 2.672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004711/0.1074, allocations: 147.6 kB / 367.5 MB, free: 2.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008268/0.1083, allocations: 0.6338 MB / 368.1 MB, free: 1.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.787e-05/0.1083, allocations: 70.12 kB / 368.2 MB, free: 1.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.707e-05/0.1084, allocations: 83.91 kB / 368.3 MB, free: 1.699 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.1097, allocations: 0.8223 MB / 369.1 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/0.1097, allocations: 7.938 kB / 369.1 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.104e-05/0.1098, allocations: 36 kB / 369.1 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.1098, allocations: 20 kB / 369.2 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009739/0.1108, allocations: 0.5426 MB / 369.7 MB, free: 248 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1171/0.2279, allocations: 3.572 MB / 373.3 MB, free: 23.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004704/0.2284, allocations: 242.2 kB / 373.5 MB, free: 23.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002238/0.2286, allocations: 118.6 kB / 373.6 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.2287, allocations: 7.109 kB / 373.6 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.618e-05/0.2287, allocations: 36.91 kB / 373.7 MB, free: 23.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 2.154e-06/0.2287, allocations: 0 / 373.7 MB, free: 23.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001834/0.2305, allocations: 1.07 MB / 374.7 MB, free: 22.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.2306, allocations: 84.3 kB / 374.8 MB, free: 22.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008091/0.2314, allocations: 0.7645 MB / 375.6 MB, free: 22.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.2314, allocations: 31.08 kB / 375.6 MB, free: 22.33 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/0.2317, allocations: 0.512 MB / 376.1 MB, free: 21.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.324e-05/0.2317, allocations: 105.6 kB / 376.2 MB, free: 21.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.2318, allocations: 122.5 kB / 376.4 MB, free: 21.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.616e-05/0.2319, allocations: 387.1 kB / 376.7 MB, free: 21.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002569/0.2322, allocations: 129 kB / 376.9 MB, free: 21.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003364/0.2325, allocations: 443.9 kB / 377.3 MB, free: 20.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006047/0.2331, allocations: 0.6182 MB / 377.9 MB, free: 20.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.2332, allocations: 6.844 kB / 377.9 MB, free: 20.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009509/0.2341, allocations: 0.6446 MB / 378.6 MB, free: 20.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.2341, allocations: 9.625 kB / 378.6 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.2342, allocations: 10.48 kB / 378.6 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001327/0.2343, allocations: 40.88 kB / 378.6 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.2347, allocations: 149 kB / 378.8 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006572/0.2354, allocations: 1.297 MB / 380.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004608/0.2359, allocations: 43.61 kB / 380.1 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.2359, allocations: 32.23 kB / 380.1 MB, free: 18.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * 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.0002409/0.2362, allocations: 249.4 kB / 380.4 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.201e-05/0.2363, allocations: 77.06 kB / 380.5 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005966/0.2369, allocations: 335.4 kB / 380.8 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.2369, allocations: 4.328 kB / 380.8 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.2369, allocations: 1.125 kB / 380.8 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2369, allocations: 2.812 kB / 380.8 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001394/0.2383, allocations: 1.111 MB / 381.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.2383, allocations: 2.719 kB / 381.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000268/0.2386, allocations: 64.02 kB / 382 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-05/0.2387, allocations: 19.77 kB / 382 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.2387, allocations: 7.359 kB / 382 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000545/0.2393, allocations: 1.284 MB / 383.3 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2393, allocations: 6 kB / 383.3 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007588/0.24, allocations: 0.5808 MB / 383.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.2402, allocations: 172.1 kB / 384 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.053e-05/0.2403, allocations: 9.109 kB / 384 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003278/0.2406, allocations: 27.11 kB / 384.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.911e-05/0.2407, allocations: 28.2 kB / 384.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.2407, allocations: 12.66 kB / 384.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005623/0.2413, allocations: 0.517 MB / 384.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2413, allocations: 0 / 384.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005988/0.2419, allocations: 169.8 kB / 384.8 MB, free: 15.52 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 (28): * Single equations (assignments): 27 * 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.0009968/0.2429, allocations: 1.149 MB / 385.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000743/0.2436, allocations: 473.1 kB / 386.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2436, allocations: 5.859 kB / 386.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003189/0.244, allocations: 244.5 kB / 386.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000898/0.2449, allocations: 170.5 kB / 386.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007729/0.2526, allocations: 7.233 MB / 394 MB, free: 9.344 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.253, allocations: 0.9535 MB / 395 MB, free: 8.633 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003153/0.2533, allocations: 97.55 kB / 395.1 MB, free: 8.609 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002679/0.2536, allocations: 316.5 kB / 395.4 MB, free: 8.371 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2536, allocations: 0 / 395.4 MB, free: 8.371 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.41/3.663, allocations: 15.16 MB / 410.6 MB, free: 12.14 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002257/3.663, allocations: 244.7 kB / 410.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.985/6.648, allocations: 0 / 410.8 MB, free: 11.88 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches