Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_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.001363/0.001363, allocations: 102.9 kB / 17.58 MB, free: 5.453 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.001631/0.001631, allocations: 187.9 kB / 18.51 MB, free: 4.531 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.32/1.32, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001197/0.001197, allocations: 56.14 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09052/0.09173, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008415/0.1002, allocations: 7.094 MB / 334.5 MB, free: 13.24 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0037/0.1039, allocations: 2.381 MB / 336.9 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005376/0.1045, allocations: 27.94 kB / 336.9 MB, free: 10.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001214/0.1058, allocations: 496.9 kB / 337.4 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007746/0.1066, allocations: 381 kB / 337.7 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.1069, allocations: 195.8 kB / 337.9 MB, free: 9.762 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.108, allocations: 1.203 MB / 339.1 MB, free: 8.555 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000681/0.1087, allocations: 0.5076 MB / 339.6 MB, free: 8.027 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005572/0.1093, allocations: 462.2 kB / 340.1 MB, free: 7.574 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004935/0.1098, allocations: 0.4899 MB / 340.6 MB, free: 7.082 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001432/0.1099, allocations: 112 kB / 340.7 MB, free: 6.973 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002887/0.1102, allocations: 156 kB / 340.9 MB, free: 6.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001611/0.1104, allocations: 223.2 kB / 341.1 MB, free: 6.602 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004826/0.1109, allocations: 0.5404 MB / 341.6 MB, free: 6.059 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001268/0.1121, allocations: 1.417 MB / 343 MB, free: 4.637 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.1122, allocations: 0 / 343 MB, free: 4.637 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1122, allocations: 0 / 343 MB, free: 4.637 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.83e-05/0.1122, allocations: 4 kB / 343 MB, free: 4.633 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001996/0.1142, allocations: 1.246 MB / 344.3 MB, free: 3.332 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.1143, allocations: 16.03 kB / 344.3 MB, free: 3.316 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001352/0.1144, allocations: 127.1 kB / 344.4 MB, free: 3.184 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004675/0.1149, allocations: 139.7 kB / 344.6 MB, free: 3.047 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009016/0.1158, allocations: 0.6416 MB / 345.2 MB, free: 2.367 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.521e-05/0.1158, allocations: 58.38 kB / 345.3 MB, free: 2.309 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.116, allocations: 80.12 kB / 345.3 MB, free: 2.23 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.1172, allocations: 0.7832 MB / 346.1 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/0.1172, allocations: 7.906 kB / 346.1 MB, free: 1.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.995e-05/0.1173, allocations: 32 kB / 346.2 MB, free: 1.379 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.849e-05/0.1173, allocations: 24 kB / 346.2 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009615/0.1183, allocations: 0.5191 MB / 346.7 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004057/0.1224, allocations: 3.395 MB / 350.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000493/0.1229, allocations: 230.5 kB / 350.3 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/0.1231, allocations: 112.8 kB / 350.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.1232, allocations: 4 kB / 350.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.1232, allocations: 34.56 kB / 350.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 3.025e-06/0.1232, allocations: 0 / 350.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002078/0.1253, allocations: 1.051 MB / 351.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.1254, allocations: 85.05 kB / 351.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009118/0.1263, allocations: 0.7387 MB / 352.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.1263, allocations: 29.7 kB / 352.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003153/0.1266, allocations: 498.2 kB / 352.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.212e-05/0.1267, allocations: 106.5 kB / 353 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.1269, allocations: 114.2 kB / 353.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.127, allocations: 378.8 kB / 353.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002718/0.1273, allocations: 125.2 kB / 353.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004346/0.1277, allocations: 414.2 kB / 354 MB, free: 9.066 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007348/0.1285, allocations: 0.5715 MB / 354.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.487e-05/0.1285, allocations: 3.938 kB / 354.5 MB, free: 8.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001139/0.1297, allocations: 0.6031 MB / 355.1 MB, free: 7.742 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1297, allocations: 8 kB / 355.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.1297, allocations: 12 kB / 355.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001453/0.1299, allocations: 36.78 kB / 355.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004207/0.1303, allocations: 136.2 kB / 355.3 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.1314, allocations: 1.398 MB / 356.7 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004676/0.1319, allocations: 39.94 kB / 356.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.413e-05/0.1319, allocations: 31.98 kB / 356.8 MB, free: 5.945 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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.0002924/0.1322, allocations: 237.5 kB / 357 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.651e-05/0.1323, allocations: 75.2 kB / 357.1 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006458/0.133, allocations: 329.8 kB / 357.4 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.133, allocations: 4 kB / 357.4 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.133, allocations: 0 / 357.4 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.133, allocations: 0 / 357.4 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.1346, allocations: 1.098 MB / 358.5 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1346, allocations: 4.031 kB / 358.5 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002545/0.1349, allocations: 63.95 kB / 358.6 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.003e-05/0.135, allocations: 24.8 kB / 358.6 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.135, allocations: 4 kB / 358.6 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008833/0.1359, allocations: 1.371 MB / 360 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1359, allocations: 0 / 360 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008719/0.1368, allocations: 0.5677 MB / 360.6 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002036/0.137, allocations: 172.2 kB / 360.7 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.968e-05/0.1371, allocations: 11.94 kB / 360.7 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003133/0.1374, allocations: 19.98 kB / 360.8 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.681e-05/0.1375, allocations: 27.91 kB / 360.8 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.1375, allocations: 8 kB / 360.8 MB, free: 1.637 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000626/0.1381, allocations: 0.5029 MB / 361.3 MB, free: 1.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1382, allocations: 0 / 361.3 MB, free: 1.141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006253/0.1388, allocations: 164 kB / 361.5 MB, free: 0.9805 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 (27): * Single equations (assignments): 26 * 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.001188/0.14, allocations: 1.109 MB / 362.6 MB, free: 15.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008759/0.1409, allocations: 485.3 kB / 363 MB, free: 15.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1409, allocations: 0 / 363 MB, free: 15.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000345/0.1412, allocations: 238.5 kB / 363.3 MB, free: 15.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009272/0.1422, allocations: 183.1 kB / 363.5 MB, free: 14.91 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008571/0.1508, allocations: 6.62 MB / 370.1 MB, free: 7.895 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000507/0.1513, allocations: 0.9411 MB / 371 MB, free: 6.926 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003705/0.1517, allocations: 90.02 kB / 371.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003264/0.152, allocations: 307.3 kB / 371.4 MB, free: 6.535 MB / 318.1 MB Notification: Performance of SimCode: time 9.12e-07/0.152, allocations: 0 / 371.4 MB, free: 6.535 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1695/0.3215, allocations: 15.08 MB / 386.5 MB, free: 50.44 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.633/9.954, allocations: 12.61 kB / 386.5 MB, free: 50.43 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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_DCPM_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches