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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 116.8 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.389/1.389, allocations: 230.6 MB / 250.5 MB, free: 9.223 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 200.9 kB / 306.7 MB, free: 4.309 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04112/0.04112, allocations: 8.906 MB / 371.7 MB, free: 3.441 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002404/0.002404, allocations: 87.84 kB / 496.5 MB, free: 9.816 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2513, allocations: 55.56 MB / 0.5391 GB, free: 26.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02045/0.2717, allocations: 28.88 MB / 0.5673 GB, free: 5.777 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01438/0.2861, allocations: 8.575 MB / 0.5757 GB, free: 15.6 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005299/0.2914, allocations: 251.7 kB / 0.5759 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01959/0.311, allocations: 8.244 MB / 0.584 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01044/0.3214, allocations: 2.859 MB / 0.5868 GB, free: 8.645 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006323/0.3278, allocations: 1.895 MB / 0.5886 GB, free: 7.145 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01432/0.3421, allocations: 10.06 MB / 0.5984 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03058/0.3727, allocations: 16.34 MB / 0.6144 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009288/0.382, allocations: 5.474 MB / 0.6197 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01006/0.392, allocations: 6.136 MB / 0.6257 GB, free: 5.16 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003956/0.396, allocations: 1.547 MB / 0.6272 GB, free: 3.613 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005826/0.4018, allocations: 1.902 MB / 0.6291 GB, free: 1.711 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004526/0.4063, allocations: 3 MB / 0.632 GB, free: 14.7 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01004/0.4164, allocations: 5.86 MB / 0.6377 GB, free: 8.82 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02704/0.4434, allocations: 20.69 MB / 0.6579 GB, free: 4.062 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.4434, allocations: 0 / 0.6579 GB, free: 4.062 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4434, allocations: 0 / 0.6579 GB, free: 4.062 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004865/0.4439, allocations: 0 / 0.6579 GB, free: 4.062 MB / 462.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.03531/0.4792, allocations: 12.09 MB / 0.6698 GB, free: 7.855 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.4793, allocations: 12.03 kB / 0.6698 GB, free: 7.844 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002913/0.4796, allocations: 259.5 kB / 0.67 GB, free: 7.59 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004746/0.4843, allocations: 1.345 MB / 0.6713 GB, free: 6.234 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03185/0.5162, allocations: 5.597 MB / 0.6768 GB, free: 0.625 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01446/0.5306, allocations: 6.349 MB / 0.683 GB, free: 10.19 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008447/0.5315, allocations: 0.7024 MB / 0.6837 GB, free: 9.488 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003634/0.5351, allocations: 0.9334 MB / 0.6846 GB, free: 8.555 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4258/0.9608, allocations: 15.1 MB / 0.6993 GB, free: 102.1 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004116/0.9613, allocations: 14.8 kB / 0.6994 GB, free: 102.1 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002715/0.964, allocations: 394.4 kB / 0.6997 GB, free: 101.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005313/0.9645, allocations: 0.5148 MB / 0.7002 GB, free: 101.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0275/0.992, allocations: 13.77 MB / 0.7137 GB, free: 96.65 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07441/1.066, allocations: 48.09 MB / 0.7607 GB, free: 64.36 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01651/1.083, allocations: 28.44 MB / 0.7884 GB, free: 34.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004305/1.087, allocations: 2.637 MB / 0.791 GB, free: 31.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000516/1.088, allocations: 344.2 kB / 0.7913 GB, free: 31.58 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.757e-05/1.088, allocations: 73.48 kB / 0.7914 GB, free: 31.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 5.751e-06/1.088, allocations: 0 / 0.7914 GB, free: 31.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.02858/1.116, allocations: 14.89 MB / 0.8059 GB, free: 16.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.55e-05/1.116, allocations: 94.33 kB / 0.806 GB, free: 16.8 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005219/1.122, allocations: 3.768 MB / 0.8097 GB, free: 13.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004987/1.122, allocations: 85.7 kB / 0.8098 GB, free: 13 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001722/1.124, allocations: 4.234 MB / 0.8139 GB, free: 8.906 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001127/1.125, allocations: 1.373 MB / 0.8153 GB, free: 7.551 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001927/1.127, allocations: 1.176 MB / 0.8164 GB, free: 6.363 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.564e-05/1.127, allocations: 301.1 kB / 0.8167 GB, free: 6.066 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003296/1.13, allocations: 2.577 MB / 0.8192 GB, free: 3.484 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005583/1.136, allocations: 5.063 MB / 0.8242 GB, free: 13.25 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01258/1.148, allocations: 8.269 MB / 0.8322 GB, free: 3.805 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-05/1.148, allocations: 24 kB / 0.8323 GB, free: 3.781 MB / 0.4982 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01952/1.168, allocations: 8.636 MB / 0.8407 GB, free: 11.11 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.596e-05/1.168, allocations: 40 kB / 0.8407 GB, free: 11.07 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001316/1.168, allocations: 88 kB / 0.8408 GB, free: 10.98 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002642/1.171, allocations: 0.8662 MB / 0.8417 GB, free: 10.11 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005116/1.176, allocations: 1.369 MB / 0.843 GB, free: 8.742 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01334/1.189, allocations: 9.037 MB / 0.8518 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004278/1.194, allocations: 327.6 kB / 0.8521 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001001/1.195, allocations: 308 kB / 0.8524 GB, free: 14.8 MB / 0.5294 GB 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.007249/1.202, allocations: 3.51 MB / 0.8559 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001353/1.203, allocations: 433.2 kB / 0.8563 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.012/1.215, allocations: 5.846 MB / 0.862 GB, free: 4.973 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.393e-05/1.215, allocations: 43.94 kB / 0.862 GB, free: 4.93 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/1.215, allocations: 8 kB / 0.862 GB, free: 4.922 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.925e-05/1.215, allocations: 19.92 kB / 0.8621 GB, free: 4.902 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0304/1.246, allocations: 14.47 MB / 0.8762 GB, free: 6.383 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-05/1.246, allocations: 384 / 0.8762 GB, free: 6.383 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002989/1.249, allocations: 0.6748 MB / 0.8768 GB, free: 5.707 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002418/1.251, allocations: 0.7288 MB / 0.8776 GB, free: 4.973 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004871/1.252, allocations: 83.97 kB / 0.8776 GB, free: 4.891 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/1.263, allocations: 8.054 MB / 0.8855 GB, free: 12.55 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/1.263, allocations: 4.031 kB / 0.8855 GB, free: 12.55 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01529/1.278, allocations: 8.519 MB / 0.8938 GB, free: 3.922 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002428/1.281, allocations: 0.908 MB / 0.8947 GB, free: 2.992 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007676/1.282, allocations: 75.94 kB / 0.8948 GB, free: 2.918 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002089/1.284, allocations: 171.8 kB / 0.8949 GB, free: 2.75 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006105/1.284, allocations: 262.7 kB / 0.8952 GB, free: 2.492 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002613/1.285, allocations: 115.9 kB / 0.8953 GB, free: 2.379 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004991/1.29, allocations: 2.524 MB / 0.8978 GB, free: 15.87 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.7e-07/1.29, allocations: 0 / 0.8978 GB, free: 15.87 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007086/1.297, allocations: 1.558 MB / 0.8993 GB, free: 14.31 MB / 0.5763 GB 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.01545/1.312, allocations: 9.226 MB / 0.9083 GB, free: 4.98 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.2177/1.53, allocations: 6.311 MB / 0.9145 GB, free: 196 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.749e-06/1.53, allocations: 0.875 kB / 0.9145 GB, free: 196 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005189/1.535, allocations: 2.764 MB / 0.9172 GB, free: 195.7 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00498/1.54, allocations: 0.9762 MB / 0.9181 GB, free: 195.6 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.084/1.624, allocations: 52.68 MB / 0.9696 GB, free: 167.2 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00766/1.632, allocations: 5.977 MB / 0.9754 GB, free: 162.5 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004529/1.636, allocations: 1.866 MB / 0.9772 GB, free: 161.1 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004207/1.64, allocations: 3.233 MB / 0.9804 GB, free: 157.9 MB / 0.5763 GB Notification: Performance of SimCode: time 1.332e-06/1.64, allocations: 0 / 0.9804 GB, free: 157.9 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1613/1.802, allocations: 121.9 MB / 1.099 GB, free: 36.56 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.91/20.71, allocations: 0 / 1.099 GB, free: 36.56 MB / 0.5763 GB " [Timeout remaining time 639] (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 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 30.85980437800754] Failed to read output from testmodel.py, exit status != 0: 20.9131356679718 20.930819957 20.483378387 Calling exit ...