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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0009434/0.0009432, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.319/1.319, allocations: 223.2 MB / 238.9 MB, free: 5.676 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.001141/0.001141, allocations: 188 kB / 290.2 MB, free: 2.367 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03248/0.03248, allocations: 8.78 MB / 350.1 MB, free: 4.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003412/0.0003416, allocations: 12.03 kB / 413.2 MB, free: 43.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09934/0.09969, allocations: 52.56 MB / 465.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.00292/0.1027, allocations: 2.318 MB / 468 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.1038, allocations: 0.6431 MB / 468.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.1041, allocations: 7.938 kB / 468.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.752e-05/0.1042, allocations: 31.77 kB / 468.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003347/0.1045, allocations: 107.7 kB / 468.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001785/0.1047, allocations: 47.95 kB / 468.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003514/0.1051, allocations: 251.5 kB / 469.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001983/0.1053, allocations: 102.8 kB / 469.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.1054, allocations: 111.6 kB / 469.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.1056, allocations: 127.5 kB / 469.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.872e-05/0.1057, allocations: 16 kB / 469.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.131e-05/0.1057, allocations: 16 kB / 469.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.631e-05/0.1058, allocations: 51.77 kB / 469.5 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.755e-05/0.1058, allocations: 81.58 kB / 469.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003147/0.1061, allocations: 311.4 kB / 469.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.1062, allocations: 0 / 469.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1062, allocations: 0 / 469.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1062, allocations: 4 kB / 469.9 MB, free: 9.281 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.0008442/0.107, allocations: 0.5458 MB / 470.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.1071, allocations: 15.97 kB / 470.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.529e-05/0.1072, allocations: 66.53 kB / 470.6 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.172e-05/0.1072, allocations: 35.58 kB / 470.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.1075, allocations: 266.5 kB / 470.8 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.1076, allocations: 20.66 kB / 470.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.934e-05/0.1076, allocations: 35.91 kB / 470.9 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004849/0.1081, allocations: 262.1 kB / 471.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.1081, allocations: 4 kB / 471.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.748e-05/0.1082, allocations: 19.98 kB / 471.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/0.1082, allocations: 11.95 kB / 471.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004525/0.1086, allocations: 218.5 kB / 471.4 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.1101, allocations: 1.048 MB / 472.5 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003673/0.1105, allocations: 160.4 kB / 472.6 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.796e-05/0.1106, allocations: 7.938 kB / 472.6 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.1106, allocations: 42.55 kB / 472.7 MB, free: 6.348 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.1106, allocations: 0 / 472.7 MB, free: 6.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001369/0.112, allocations: 0.7043 MB / 473.4 MB, free: 5.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/0.112, allocations: 59.33 kB / 473.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001789/0.1122, allocations: 198.5 kB / 473.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.1122, allocations: 29.7 kB / 473.6 MB, free: 5.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.1124, allocations: 188 kB / 473.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.387e-05/0.1124, allocations: 55.25 kB / 473.9 MB, free: 5.016 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.066e-05/0.1124, allocations: 8 kB / 473.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1126, allocations: 326.8 kB / 474.2 MB, free: 4.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/0.1128, allocations: 63.97 kB / 474.3 MB, free: 4.617 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.113, allocations: 107 kB / 474.4 MB, free: 4.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.1131, allocations: 79.88 kB / 474.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.1131, allocations: 0 / 474.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004313/0.1136, allocations: 244.1 kB / 474.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.1136, allocations: 4 kB / 474.7 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1136, allocations: 4 kB / 474.7 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001206/0.1137, allocations: 24.97 kB / 474.7 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.1139, allocations: 43.92 kB / 474.8 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000903/0.1148, allocations: 1.28 MB / 476.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.115, allocations: 15.97 kB / 476.1 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.115, allocations: 8 kB / 476.1 MB, free: 2.66 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001548/0.1152, allocations: 153.9 kB / 476.2 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.742e-05/0.1152, allocations: 15.81 kB / 476.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.926e-05/0.1152, allocations: 17.88 kB / 476.3 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1153, allocations: 0 / 476.3 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1153, allocations: 7.953 kB / 476.3 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1153, allocations: 3.984 kB / 476.3 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008478/0.1161, allocations: 0.6218 MB / 476.9 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.1161, allocations: 0 / 476.9 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001939/0.1163, allocations: 39.92 kB / 476.9 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.785e-05/0.1164, allocations: 20.84 kB / 476.9 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.1164, allocations: 8.062 kB / 477 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008832/0.1173, allocations: 1.288 MB / 478.2 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1174, allocations: 4.031 kB / 478.2 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006197/0.118, allocations: 409.2 kB / 478.6 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/0.118, allocations: 92.83 kB / 478.7 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.755e-05/0.1181, allocations: 8 kB / 478.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.1182, allocations: 16.03 kB / 478.8 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/0.1183, allocations: 19.94 kB / 478.8 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.1183, allocations: 4 kB / 478.8 MB, free: 15.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000117/0.1184, allocations: 143.2 kB / 478.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1184, allocations: 0 / 478.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003144/0.1188, allocations: 60 kB / 479 MB, free: 15.48 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008795/0.1197, allocations: 1.072 MB / 480.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005112/0.1202, allocations: 282.5 kB / 480.3 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1202, allocations: 4 kB / 480.3 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002674/0.1205, allocations: 191 kB / 480.5 MB, free: 13.87 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.1208, allocations: 32.17 kB / 480.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.1233, allocations: 2.209 MB / 482.8 MB, free: 11.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.1236, allocations: 0.7635 MB / 483.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.028e-05/0.1237, allocations: 21.53 kB / 483.5 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.1238, allocations: 83.41 kB / 483.6 MB, free: 10.67 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1238, allocations: 0 / 483.6 MB, free: 10.67 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01505/0.1389, allocations: 4.195 MB / 487.8 MB, free: 6.625 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/0.1391, allocations: 188.9 kB / 488 MB, free: 6.387 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/1.775, allocations: 4 kB / 488 MB, free: 6.383 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/linux/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) Environment - environmentSimulation: