Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_3_2_3_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.001144/0.001144, allocations: 99.95 kB / 17.58 MB, free: 5.418 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.001071/0.001071, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.317/1.317, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001219, allocations: 51.92 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08484/0.08607, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.009459/0.09557, allocations: 7.947 MB / 335.3 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005009/0.1006, allocations: 2.627 MB / 338 MB, free: 9.738 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.1017, allocations: 23.94 kB / 338 MB, free: 9.715 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001721/0.1035, allocations: 0.5403 MB / 338.5 MB, free: 9.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001428/0.1049, allocations: 460.4 kB / 339 MB, free: 8.719 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006758/0.1056, allocations: 243.7 kB / 339.2 MB, free: 8.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00192/0.1075, allocations: 1.42 MB / 340.6 MB, free: 7.055 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001112/0.1087, allocations: 0.5924 MB / 341.2 MB, free: 6.441 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009561/0.1096, allocations: 0.5369 MB / 341.8 MB, free: 5.902 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009114/0.1106, allocations: 0.5755 MB / 342.3 MB, free: 5.324 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002565/0.1108, allocations: 136 kB / 342.5 MB, free: 5.191 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004764/0.1113, allocations: 180 kB / 342.6 MB, free: 5.016 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002338/0.1116, allocations: 275 kB / 342.9 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007732/0.1123, allocations: 0.6454 MB / 343.6 MB, free: 4.098 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001879/0.1142, allocations: 1.674 MB / 345.2 MB, free: 2.418 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1142, allocations: 0 / 345.2 MB, free: 2.418 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1142, allocations: 4 kB / 345.2 MB, free: 2.414 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.639e-05/0.1143, allocations: 0 / 345.2 MB, free: 2.414 MB / 286.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.002515/0.1168, allocations: 1.425 MB / 346.7 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1169, allocations: 12.03 kB / 346.7 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001605/0.117, allocations: 144.3 kB / 346.8 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005737/0.1176, allocations: 167.4 kB / 347 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.1187, allocations: 0.7299 MB / 347.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.005e-05/0.1188, allocations: 70 kB / 347.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.1189, allocations: 99.98 kB / 347.9 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.1204, allocations: 0.919 MB / 348.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.837e-05/0.1204, allocations: 4 kB / 348.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.673e-05/0.1205, allocations: 40 kB / 348.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.1205, allocations: 24 kB / 348.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.1217, allocations: 0.6207 MB / 349.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004787/0.1265, allocations: 3.92 MB / 353.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005483/0.1271, allocations: 347.7 kB / 353.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002793/0.1274, allocations: 148.7 kB / 353.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.1274, allocations: 11.98 kB / 353.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.1275, allocations: 34.5 kB / 353.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.074e-06/0.1275, allocations: 4 kB / 353.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002252/0.1297, allocations: 1.189 MB / 355.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.1298, allocations: 85.05 kB / 355.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009817/0.1308, allocations: 0.8252 MB / 356 MB, free: 7.098 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.1308, allocations: 29.7 kB / 356.1 MB, free: 7.062 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003663/0.1312, allocations: 0.5718 MB / 356.6 MB, free: 6.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.975e-05/0.1313, allocations: 126.2 kB / 356.8 MB, free: 6.355 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.1315, allocations: 130.5 kB / 356.9 MB, free: 6.219 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.1316, allocations: 337.9 kB / 357.2 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003029/0.1319, allocations: 145.9 kB / 357.4 MB, free: 5.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000486/0.1324, allocations: 456 kB / 357.8 MB, free: 5.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008293/0.1332, allocations: 0.6353 MB / 358.4 MB, free: 4.375 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.1332, allocations: 7.828 kB / 358.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001124/0.1344, allocations: 0.6887 MB / 359.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.1344, allocations: 15.22 kB / 359.1 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.1344, allocations: 12 kB / 359.2 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001375/0.1346, allocations: 36.86 kB / 359.2 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004819/0.1351, allocations: 155.7 kB / 359.3 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000978/0.1361, allocations: 1.39 MB / 360.7 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004586/0.1365, allocations: 40.14 kB / 360.8 MB, free: 1.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.741e-05/0.1366, allocations: 32 kB / 360.8 MB, free: 1.855 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.0003236/0.1369, allocations: 253.5 kB / 361.1 MB, free: 1.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.137, allocations: 94.89 kB / 361.1 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007238/0.1378, allocations: 374.4 kB / 361.5 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1378, allocations: 4 kB / 361.5 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.1378, allocations: 0 / 361.5 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.1378, allocations: 4.031 kB / 361.5 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.1395, allocations: 1.265 MB / 362.8 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.1395, allocations: 7.938 kB / 362.8 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003095/0.1399, allocations: 72.11 kB / 362.9 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.208e-05/0.1399, allocations: 28.84 kB / 362.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.14, allocations: 8 kB / 362.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009142/0.1409, allocations: 1.375 MB / 364.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1409, allocations: 0 / 364.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009945/0.1419, allocations: 0.639 MB / 364.9 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002264/0.1422, allocations: 188.1 kB / 365.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.193e-05/0.1423, allocations: 8 kB / 365.1 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003698/0.1426, allocations: 23.92 kB / 365.1 MB, free: 13.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.438e-05/0.1427, allocations: 31.91 kB / 365.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.1427, allocations: 15.98 kB / 365.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007027/0.1435, allocations: 0.5576 MB / 365.7 MB, free: 12.63 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1435, allocations: 0 / 365.7 MB, free: 12.63 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006708/0.1441, allocations: 188 kB / 365.9 MB, free: 12.45 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.001299/0.1454, allocations: 1.199 MB / 367.1 MB, free: 11.2 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009831/0.1464, allocations: 0.524 MB / 367.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.1465, allocations: 0 / 367.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003944/0.1469, allocations: 267.3 kB / 367.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.1479, allocations: 212.7 kB / 368.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00964/0.1575, allocations: 7.621 MB / 375.7 MB, free: 2.074 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006098/0.1582, allocations: 0.9923 MB / 376.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004816/0.1587, allocations: 102.9 kB / 376.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004638/0.1592, allocations: 367.3 kB / 377.2 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1592, allocations: 0 / 377.2 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1755/0.3347, allocations: 17.51 MB / 394.7 MB, free: 47.4 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.74/10.07, allocations: 19.97 kB / 394.7 MB, free: 47.38 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches