Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",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.0007797/0.0007798, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.301/1.301, allocations: 223.3 MB / 239.4 MB, free: 5.527 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.0009499/0.0009499, allocations: 172.6 kB / 290.6 MB, free: 2.199 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03409/0.03409, allocations: 8.796 MB / 350.5 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003321/0.0003321, allocations: 12.31 kB / 413.9 MB, free: 42.79 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07558/0.07593, allocations: 52.56 MB / 466.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02555/0.1015, allocations: 27 MB / 493.5 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01451/0.1161, allocations: 8.287 MB / 0.49 GB, free: 9.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004421/0.1205, allocations: 203.4 kB / 0.4902 GB, free: 9.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004986/0.1255, allocations: 1.758 MB / 0.4919 GB, free: 7.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007925/0.1335, allocations: 2.541 MB / 0.4944 GB, free: 5.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004267/0.1378, allocations: 1.543 MB / 0.4959 GB, free: 3.559 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01143/0.1492, allocations: 9.875 MB / 0.5056 GB, free: 9.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0348/0.184, allocations: 21.35 MB / 0.5264 GB, free: 4.164 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005388/0.1895, allocations: 3.767 MB / 0.5301 GB, free: 392 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1818/0.3712, allocations: 4.589 MB / 0.5346 GB, free: 19.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001954/0.3732, allocations: 0.5988 MB / 0.5351 GB, free: 19.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00352/0.3768, allocations: 0.9541 MB / 0.5361 GB, free: 19.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002133/0.3789, allocations: 1.838 MB / 0.5379 GB, free: 18.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006244/0.3852, allocations: 4.61 MB / 0.5424 GB, free: 17.49 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01702/0.4022, allocations: 19.36 MB / 0.5613 GB, free: 9.828 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.4022, allocations: 0 / 0.5613 GB, free: 9.828 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4023, allocations: 0 / 0.5613 GB, free: 9.828 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004846/0.4028, allocations: 2.875 kB / 0.5613 GB, free: 9.828 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.02633/0.4291, allocations: 9.794 MB / 0.5708 GB, free: 4.816 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.4291, allocations: 12.84 kB / 0.5709 GB, free: 4.816 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003836/0.433, allocations: 1.354 MB / 0.5722 GB, free: 4.473 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0298/0.4628, allocations: 5.631 MB / 0.5777 GB, free: 2.277 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01032/0.4731, allocations: 6.155 MB / 0.5837 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005172/0.4737, allocations: 0.7042 MB / 0.5844 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003092/0.4768, allocations: 0.9312 MB / 0.5853 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03504/0.5118, allocations: 15.1 MB / 0.6 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002823/0.5122, allocations: 23.38 kB / 0.6001 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001525/0.5137, allocations: 393.5 kB / 0.6004 GB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000478/0.5142, allocations: 0.5117 MB / 0.6009 GB, free: 3.336 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02769/0.5419, allocations: 13.73 MB / 0.6143 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07946/0.6214, allocations: 47.99 MB / 0.6612 GB, free: 5.219 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02253/0.6439, allocations: 28.75 MB / 0.6893 GB, free: 4.742 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004781/0.6487, allocations: 2.894 MB / 0.6921 GB, free: 1.84 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000397/0.6492, allocations: 242.8 kB / 0.6923 GB, free: 1.574 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.901e-05/0.6492, allocations: 69.48 kB / 0.6924 GB, free: 1.496 MB / 478.1 MB Notification: Performance of pre-optimization done (n=372): time 5.47e-06/0.6492, allocations: 0 / 0.6924 GB, free: 1.496 MB / 478.1 MB Notification: Performance of matching and sorting (n=380): time 0.03079/0.68, allocations: 14.73 MB / 0.7068 GB, free: 2.707 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.16e-05/0.6801, allocations: 90.39 kB / 0.7069 GB, free: 2.605 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1795/0.8596, allocations: 3.754 MB / 0.7106 GB, free: 166.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006184/0.8603, allocations: 87.77 kB / 0.7106 GB, free: 166.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002474/0.8627, allocations: 4.079 MB / 0.7146 GB, free: 164.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001306/0.8641, allocations: 1.306 MB / 0.7159 GB, free: 163.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001103/0.8652, allocations: 475.2 kB / 0.7163 GB, free: 163.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.747e-05/0.8652, allocations: 305.1 kB / 0.7166 GB, free: 163.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003845/0.8691, allocations: 2.574 MB / 0.7192 GB, free: 163.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004607/0.8737, allocations: 5.046 MB / 0.7241 GB, free: 160.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009023/0.8827, allocations: 8.254 MB / 0.7321 GB, free: 155.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.405e-05/0.8828, allocations: 23.53 kB / 0.7322 GB, free: 155.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01166/0.8945, allocations: 8.601 MB / 0.7406 GB, free: 152.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.743e-05/0.8945, allocations: 47.62 kB / 0.7406 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001015/0.8947, allocations: 80.53 kB / 0.7407 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002089/0.8968, allocations: 0.8551 MB / 0.7415 GB, free: 152.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003946/0.9007, allocations: 1.36 MB / 0.7428 GB, free: 152.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008783/0.9095, allocations: 8.372 MB / 0.751 GB, free: 146.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00406/0.9136, allocations: 329.5 kB / 0.7513 GB, free: 146.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004786/0.9141, allocations: 306.9 kB / 0.7516 GB, free: 146.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005199/0.9193, allocations: 3.506 MB / 0.7551 GB, free: 144.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000757/0.92, allocations: 412.9 kB / 0.7554 GB, free: 144.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008288/0.9283, allocations: 5.849 MB / 0.7612 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.066e-05/0.9284, allocations: 36 kB / 0.7612 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.9284, allocations: 8 kB / 0.7612 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.199e-05/0.9284, allocations: 30.64 kB / 0.7612 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01971/0.9482, allocations: 14.77 MB / 0.7757 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.9482, allocations: 0 / 0.7757 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002327/0.9505, allocations: 0.6652 MB / 0.7763 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001747/0.9523, allocations: 0.7141 MB / 0.777 GB, free: 125.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001929/0.9525, allocations: 79.98 kB / 0.7771 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007285/0.9598, allocations: 7.411 MB / 0.7843 GB, free: 118.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.9598, allocations: 15.06 kB / 0.7843 GB, free: 118.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/0.97, allocations: 8.483 MB / 0.7926 GB, free: 109.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001865/0.9719, allocations: 0.8823 MB / 0.7935 GB, free: 108.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005167/0.9725, allocations: 68 kB / 0.7935 GB, free: 108.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001763/0.9742, allocations: 179.9 kB / 0.7937 GB, free: 108.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004418/0.9747, allocations: 254.6 kB / 0.794 GB, free: 108.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001925/0.9749, allocations: 108 kB / 0.7941 GB, free: 108 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003263/0.9781, allocations: 2.524 MB / 0.7965 GB, free: 105.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9782, allocations: 0 / 0.7965 GB, free: 105.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004866/0.983, allocations: 1.552 MB / 0.798 GB, free: 103.9 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.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 (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01007/0.9931, allocations: 9.187 MB / 0.807 GB, free: 94.62 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008252/1.001, allocations: 6.533 MB / 0.8134 GB, free: 88.07 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1.001, allocations: 0 / 0.8134 GB, free: 88.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003465/1.005, allocations: 2.952 MB / 0.8163 GB, free: 85.09 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005579/1.01, allocations: 0.9158 MB / 0.8172 GB, free: 84.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09689/1.107, allocations: 65.51 MB / 0.8811 GB, free: 13.14 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1876/1.295, allocations: 5.968 MB / 0.887 GB, free: 170.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00582/1.301, allocations: 1.868 MB / 0.8888 GB, free: 170 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004545/1.305, allocations: 3.218 MB / 0.8919 GB, free: 170 MB / 494.1 MB Notification: Performance of SimCode: time 7.21e-07/1.305, allocations: 1.312 kB / 0.8919 GB, free: 170 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1389/1.444, allocations: 118.1 MB / 1.007 GB, free: 71.22 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001375/1.445, allocations: 232.1 kB / 1.007 GB, free: 70.96 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.912/5.356, allocations: 3.938 kB / 1.007 GB, free: 70.96 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)