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.001009/0.001009, allocations: 114.3 kB / 17.28 MB, free: 6.219 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.001015/0.001015, allocations: 185.3 kB / 18.2 MB, free: 5.301 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.247/1.247, allocations: 205.1 MB / 224 MB, free: 12.45 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.001089/0.001089, allocations: 51.92 kB / 280.3 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07822/0.07932, allocations: 46.62 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007341/0.0867, allocations: 7.074 MB / 334 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003716/0.09045, allocations: 2.35 MB / 336.3 MB, free: 11.22 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004818/0.09095, allocations: 23.88 kB / 336.3 MB, free: 11.2 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.09217, allocations: 457.7 kB / 336.8 MB, free: 10.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007178/0.0929, allocations: 325.6 kB / 337.1 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003423/0.09325, allocations: 183.9 kB / 337.3 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001058/0.09432, allocations: 1.199 MB / 338.5 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006099/0.09494, allocations: 0.5037 MB / 339 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004877/0.09543, allocations: 458.1 kB / 339.4 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004984/0.09594, allocations: 0.4939 MB / 339.9 MB, free: 7.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.09607, allocations: 112 kB / 340 MB, free: 7.461 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002484/0.09633, allocations: 156 kB / 340.2 MB, free: 7.309 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.0965, allocations: 223.2 kB / 340.4 MB, free: 7.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004169/0.09692, allocations: 0.5444 MB / 340.9 MB, free: 6.543 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.09809, allocations: 1.413 MB / 342.4 MB, free: 5.125 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.0981, allocations: 0 / 342.4 MB, free: 5.125 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.09811, allocations: 0 / 342.4 MB, free: 5.125 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.09813, allocations: 0 / 342.4 MB, free: 5.125 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.001777/0.09991, allocations: 1.258 MB / 343.6 MB, free: 3.812 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.09996, allocations: 12.02 kB / 343.6 MB, free: 3.801 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001285/0.1001, allocations: 123.1 kB / 343.7 MB, free: 3.672 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004431/0.1005, allocations: 143.7 kB / 343.9 MB, free: 3.531 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008256/0.1014, allocations: 0.6376 MB / 344.5 MB, free: 2.855 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.453e-05/0.1014, allocations: 66.38 kB / 344.6 MB, free: 2.789 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.1015, allocations: 80.12 kB / 344.7 MB, free: 2.711 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.1027, allocations: 0.7793 MB / 345.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.756e-05/0.1028, allocations: 7.906 kB / 345.5 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.727e-05/0.1028, allocations: 35.98 kB / 345.5 MB, free: 1.859 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.1029, allocations: 20 kB / 345.5 MB, free: 1.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009013/0.1038, allocations: 0.5153 MB / 346 MB, free: 1.324 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003726/0.1075, allocations: 3.387 MB / 349.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004416/0.108, allocations: 234.5 kB / 349.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002209/0.1082, allocations: 112.8 kB / 349.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.853e-05/0.1082, allocations: 4 kB / 349.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.1083, allocations: 34.56 kB / 349.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.793e-06/0.1083, allocations: 0 / 349.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.00184/0.1101, allocations: 1.047 MB / 350.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.749e-05/0.1102, allocations: 85.05 kB / 350.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008409/0.111, allocations: 0.7426 MB / 351.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.1111, allocations: 29.7 kB / 351.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003199/0.1114, allocations: 0.4904 MB / 352.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.454e-05/0.1115, allocations: 106.5 kB / 352.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.1116, allocations: 114.2 kB / 352.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1118, allocations: 378.8 kB / 352.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002442/0.112, allocations: 125.2 kB / 352.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004189/0.1125, allocations: 418.2 kB / 353.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006827/0.1132, allocations: 0.5676 MB / 353.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.1132, allocations: 7.938 kB / 353.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009893/0.1142, allocations: 0.6114 MB / 354.5 MB, free: 8.219 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.1142, allocations: 11.98 kB / 354.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/0.1142, allocations: 12 kB / 354.5 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001576/0.1144, allocations: 32.8 kB / 354.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004072/0.1148, allocations: 139.8 kB / 354.7 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001012/0.1158, allocations: 1.394 MB / 356.1 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004317/0.1163, allocations: 40.05 kB / 356.1 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.338e-05/0.1163, allocations: 32 kB / 356.1 MB, free: 6.422 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.0002853/0.1166, allocations: 237.5 kB / 356.4 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.846e-05/0.1167, allocations: 67.16 kB / 356.4 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006109/0.1173, allocations: 325.3 kB / 356.8 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1174, allocations: 4 kB / 356.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.1174, allocations: 0 / 356.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.1174, allocations: 4 kB / 356.8 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001495/0.1189, allocations: 1.106 MB / 357.9 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.1189, allocations: 0 / 357.9 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002477/0.1191, allocations: 51.97 kB / 357.9 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.368e-05/0.1192, allocations: 33 kB / 358 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.1193, allocations: 8 kB / 358 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00085/0.1201, allocations: 1.379 MB / 359.3 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.1201, allocations: 0 / 359.3 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000796/0.1209, allocations: 0.5559 MB / 359.9 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/0.1211, allocations: 172.3 kB / 360.1 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.044e-05/0.1212, allocations: 8 kB / 360.1 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003119/0.1215, allocations: 19.97 kB / 360.1 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.462e-05/0.1216, allocations: 31.94 kB / 360.1 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.1216, allocations: 8 kB / 360.1 MB, free: 2.121 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005967/0.1222, allocations: 0.5069 MB / 360.6 MB, free: 1.621 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1223, allocations: 0 / 360.6 MB, free: 1.621 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006132/0.1229, allocations: 156 kB / 360.8 MB, free: 1.469 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.001133/0.124, allocations: 1.117 MB / 361.9 MB, free: 308 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008452/0.1249, allocations: 466.7 kB / 362.4 MB, free: 15.83 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.1249, allocations: 5.938 kB / 362.4 MB, free: 15.83 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003898/0.1253, allocations: 242.9 kB / 362.6 MB, free: 15.58 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009436/0.1262, allocations: 182.8 kB / 362.8 MB, free: 15.4 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008774/0.135, allocations: 6.922 MB / 369.7 MB, free: 8.078 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004872/0.1355, allocations: 0.945 MB / 370.7 MB, free: 7.105 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003601/0.1359, allocations: 90.02 kB / 370.7 MB, free: 7.016 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/0.1362, allocations: 299.3 kB / 371 MB, free: 6.723 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1362, allocations: 0 / 371 MB, free: 6.723 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.149/0.2853, allocations: 14.92 MB / 386 MB, free: 50.52 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/0.2855, allocations: 233.4 kB / 386.2 MB, free: 50.27 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.015/2.301, allocations: 0 / 386.2 MB, free: 50.27 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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","../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