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.001087/0.001087, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 222.9 MB / 239.3 MB, free: 4.602 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.001253/0.001253, allocations: 192.5 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0344/0.0344, allocations: 8.795 MB / 348.5 MB, free: 4.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001767, allocations: 78.23 kB / 411.2 MB, free: 41.95 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08579/0.08757, allocations: 51.57 MB / 462.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004058/0.09167, allocations: 2.84 MB / 465.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.0928, allocations: 0.6738 MB / 466.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001455/0.09296, allocations: 7.938 kB / 466.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.09314, allocations: 47.52 kB / 466.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002228/0.09338, allocations: 91.19 kB / 466.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001583/0.09354, allocations: 83.91 kB / 466.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003895/0.09394, allocations: 378.4 kB / 466.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000236/0.09419, allocations: 140.5 kB / 467 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.09434, allocations: 139.5 kB / 467.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.09451, allocations: 151.4 kB / 467.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.242e-05/0.09457, allocations: 36 kB / 467.3 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.804e-05/0.09463, allocations: 36 kB / 467.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.147e-05/0.0947, allocations: 75.7 kB / 467.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.09485, allocations: 171.2 kB / 467.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003542/0.09521, allocations: 410.9 kB / 468 MB, free: 9.008 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.09522, allocations: 0 / 468 MB, free: 9.008 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.09523, allocations: 0 / 468 MB, free: 9.008 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.09525, allocations: 0 / 468 MB, free: 9.008 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.0008815/0.09613, allocations: 0.5927 MB / 468.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.09618, allocations: 12.02 kB / 468.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.059e-05/0.09626, allocations: 62.73 kB / 468.7 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.46e-05/0.09633, allocations: 32.56 kB / 468.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003061/0.09664, allocations: 279.6 kB / 469 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.09669, allocations: 29.03 kB / 469 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.505e-05/0.09675, allocations: 28.38 kB / 469 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005565/0.09732, allocations: 274 kB / 469.3 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.09735, allocations: 3.984 kB / 469.3 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.09739, allocations: 12 kB / 469.3 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.09741, allocations: 7.938 kB / 469.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004867/0.0979, allocations: 210.5 kB / 469.5 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00161/0.09952, allocations: 1.04 MB / 470.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003491/0.09988, allocations: 158.5 kB / 470.7 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.1001, allocations: 84.73 kB / 470.8 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.1001, allocations: 4 kB / 470.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.1001, allocations: 30.56 kB / 470.8 MB, free: 5.973 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.1001, allocations: 0 / 470.8 MB, free: 5.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.00133/0.1015, allocations: 0.6775 MB / 471.5 MB, free: 5.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.1015, allocations: 55.34 kB / 471.6 MB, free: 5.156 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.1017, allocations: 203.2 kB / 471.8 MB, free: 4.949 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.1017, allocations: 25.7 kB / 471.8 MB, free: 4.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.1018, allocations: 192 kB / 472 MB, free: 4.727 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.652e-05/0.1019, allocations: 59.16 kB / 472 MB, free: 4.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-05/0.102, allocations: 37.7 kB / 472.1 MB, free: 4.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1021, allocations: 334.8 kB / 472.4 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.1022, allocations: 59.97 kB / 472.5 MB, free: 4.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.1024, allocations: 107.2 kB / 472.6 MB, free: 4.113 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003196/0.1028, allocations: 160.1 kB / 472.7 MB, free: 3.941 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.1028, allocations: 4 kB / 472.7 MB, free: 3.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004537/0.1032, allocations: 236.4 kB / 473 MB, free: 3.699 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.1033, allocations: 4 kB / 473 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.1033, allocations: 0 / 473 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001377/0.1034, allocations: 24.84 kB / 473 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.1036, allocations: 44.05 kB / 473 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009608/0.1046, allocations: 1.378 MB / 474.4 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001432/0.1048, allocations: 12.02 kB / 474.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.1048, allocations: 8 kB / 474.4 MB, free: 2.086 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.0001456/0.1049, allocations: 155.5 kB / 474.6 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.282e-05/0.105, allocations: 23.75 kB / 474.6 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.309e-05/0.105, allocations: 21.88 kB / 474.6 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.105, allocations: 4 kB / 474.6 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1051, allocations: 3.984 kB / 474.6 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1051, allocations: 0 / 474.6 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008408/0.1059, allocations: 0.6062 MB / 475.2 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.1059, allocations: 0 / 475.2 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000203/0.1061, allocations: 35.92 kB / 475.3 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-05/0.1062, allocations: 20.84 kB / 475.3 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.1062, allocations: 8 kB / 475.3 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008682/0.1071, allocations: 1.371 MB / 476.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.1071, allocations: 4.156 kB / 476.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005813/0.1077, allocations: 369.8 kB / 477 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.677e-05/0.1078, allocations: 100.9 kB / 477.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.664e-05/0.1078, allocations: 8 kB / 477.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.108, allocations: 12 kB / 477.2 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.684e-05/0.108, allocations: 11.97 kB / 477.2 MB, free: 15.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.1081, allocations: 4 kB / 477.2 MB, free: 15.08 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001135/0.1082, allocations: 144.5 kB / 477.3 MB, free: 14.94 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1082, allocations: 0 / 477.3 MB, free: 14.94 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003294/0.1085, allocations: 55.98 kB / 477.4 MB, free: 14.88 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.0008749/0.1094, allocations: 0.9089 MB / 478.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005618/0.11, allocations: 270.5 kB / 478.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.11, allocations: 0 / 478.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002867/0.1103, allocations: 201.3 kB / 478.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000463/0.1108, allocations: 52.03 kB / 478.8 MB, free: 13.4 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003157/0.1139, allocations: 2.541 MB / 481.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.1142, allocations: 0.7593 MB / 482.1 MB, free: 9.953 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.384e-05/0.1143, allocations: 21.53 kB / 482.1 MB, free: 9.93 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.1145, allocations: 83.34 kB / 482.2 MB, free: 9.848 MB / 318.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1145, allocations: 4 kB / 482.2 MB, free: 9.844 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0277/0.1422, allocations: 4.566 MB / 486.8 MB, free: 5.371 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.372/9.514, allocations: 25.48 kB / 486.8 MB, free: 5.352 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Rotational.TestDCPMMachine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)