Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",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.001219/0.001219, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.316/1.316, allocations: 222.9 MB / 238.9 MB, free: 4.754 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 192.5 kB / 289.1 MB, free: 2.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03411/0.03411, allocations: 8.803 MB / 348.1 MB, free: 4.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 75.91 kB / 410.5 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09358/0.09496, allocations: 51.57 MB / 462.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004415/0.09943, allocations: 2.891 MB / 465 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009931/0.1005, allocations: 0.6466 MB / 465.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.1006, allocations: 7.938 kB / 465.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.1008, allocations: 39.69 kB / 465.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.101, allocations: 87.38 kB / 465.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001458/0.1012, allocations: 71.95 kB / 465.8 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003187/0.1015, allocations: 354.4 kB / 466.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002282/0.1017, allocations: 120.1 kB / 466.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.1019, allocations: 123.5 kB / 466.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.102, allocations: 135.4 kB / 466.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.253e-05/0.1021, allocations: 20 kB / 466.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.929e-05/0.1022, allocations: 24 kB / 466.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.712e-05/0.1022, allocations: 67.69 kB / 466.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.1024, allocations: 155.2 kB / 466.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003406/0.1027, allocations: 390.9 kB / 467.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1027, allocations: 0 / 467.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.1027, allocations: 0 / 467.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.1027, allocations: 4 kB / 467.2 MB, free: 9.629 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008436/0.1036, allocations: 0.5888 MB / 467.8 MB, free: 8.992 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.1036, allocations: 12.03 kB / 467.8 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.565e-05/0.1037, allocations: 62.72 kB / 467.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.045e-05/0.1038, allocations: 32.56 kB / 467.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.1041, allocations: 275.7 kB / 468.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.795e-05/0.1041, allocations: 25.03 kB / 468.2 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.858e-05/0.1042, allocations: 40.31 kB / 468.2 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005123/0.1047, allocations: 270 kB / 468.5 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.1047, allocations: 4 kB / 468.5 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.1047, allocations: 12 kB / 468.5 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.1048, allocations: 8 kB / 468.5 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004461/0.1052, allocations: 206.5 kB / 468.7 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.1068, allocations: 1.048 MB / 469.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003663/0.1071, allocations: 158.5 kB / 469.9 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.1073, allocations: 80.7 kB / 470 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.1073, allocations: 0 / 470 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.1074, allocations: 42.55 kB / 470 MB, free: 6.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.213e-06/0.1074, allocations: 0 / 470 MB, free: 6.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001396/0.1088, allocations: 0.6752 MB / 470.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.1088, allocations: 51.41 kB / 470.7 MB, free: 5.781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.1091, allocations: 195.2 kB / 470.9 MB, free: 5.582 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.328e-05/0.1091, allocations: 33.7 kB / 471 MB, free: 5.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.1092, allocations: 192 kB / 471.2 MB, free: 5.352 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.749e-05/0.1093, allocations: 51.17 kB / 471.2 MB, free: 5.301 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.422e-05/0.1094, allocations: 41.7 kB / 471.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1095, allocations: 330.8 kB / 471.6 MB, free: 4.922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.1097, allocations: 59.95 kB / 471.6 MB, free: 4.863 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.1099, allocations: 117.7 kB / 471.7 MB, free: 4.734 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003193/0.1102, allocations: 158.7 kB / 471.9 MB, free: 4.566 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1102, allocations: 0 / 471.9 MB, free: 4.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004882/0.1107, allocations: 238 kB / 472.1 MB, free: 4.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.1108, allocations: 8 kB / 472.1 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.1108, allocations: 0 / 472.1 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001562/0.1109, allocations: 24.84 kB / 472.2 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.1111, allocations: 47.98 kB / 472.2 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009585/0.1121, allocations: 1.272 MB / 473.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.1122, allocations: 16.19 kB / 473.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.1123, allocations: 4 kB / 473.5 MB, free: 2.816 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (22): * Single equations (assignments): 21 * 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.0001529/0.1124, allocations: 150.3 kB / 473.6 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.113e-05/0.1125, allocations: 19.81 kB / 473.7 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.008e-05/0.1125, allocations: 25.8 kB / 473.7 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.1125, allocations: 0 / 473.7 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1125, allocations: 0 / 473.7 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1125, allocations: 4 kB / 473.7 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008222/0.1134, allocations: 0.6101 MB / 474.3 MB, free: 1.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.1134, allocations: 3.938 kB / 474.3 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.1136, allocations: 35.97 kB / 474.3 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.726e-05/0.1137, allocations: 28.91 kB / 474.4 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.1137, allocations: 4 kB / 474.4 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008341/0.1145, allocations: 1.276 MB / 475.6 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.1145, allocations: 7.969 kB / 475.7 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005774/0.1151, allocations: 373.8 kB / 476 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.437e-05/0.1152, allocations: 92.95 kB / 476.1 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.773e-05/0.1152, allocations: 7.938 kB / 476.1 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/0.1154, allocations: 11.98 kB / 476.1 MB, free: 15.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.529e-05/0.1155, allocations: 15.98 kB / 476.1 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.1155, allocations: 4 kB / 476.2 MB, free: 15.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001099/0.1156, allocations: 140.5 kB / 476.3 MB, free: 15.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1156, allocations: 0 / 476.3 MB, free: 15.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003193/0.1159, allocations: 64 kB / 476.4 MB, free: 15.71 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,machine.inertia.w,load.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 (15): * Single equations (assignments): 14 * 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.0008458/0.1168, allocations: 0.9105 MB / 477.3 MB, free: 14.76 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005502/0.1173, allocations: 268.4 kB / 477.5 MB, free: 14.49 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1173, allocations: 0 / 477.5 MB, free: 14.49 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002762/0.1176, allocations: 195 kB / 477.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004564/0.1181, allocations: 34.8 kB / 477.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.1213, allocations: 2.667 MB / 480.4 MB, free: 11.47 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003149/0.1216, allocations: 0.7596 MB / 481.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.12e-05/0.1217, allocations: 17.53 kB / 481.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.1219, allocations: 83.41 kB / 481.3 MB, free: 10.58 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1219, allocations: 0 / 481.3 MB, free: 10.58 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01624/0.1381, allocations: 4.321 MB / 485.6 MB, free: 6.375 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002134/0.1384, allocations: 212.2 kB / 485.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.643/1.782, allocations: 0 / 485.8 MB, free: 6.121 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_TestDCPMMachine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)