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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 107.7 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 225.6 MB / 244.8 MB, free: 14.2 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 193.8 kB / 299.8 MB, free: 9.844 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04184/0.04184, allocations: 8.937 MB / 363.6 MB, free: 10.19 MB / 302.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002367/0.002367, allocations: 82.89 kB / 486.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.109, allocations: 54.41 MB / 0.5278 GB, free: 1.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.03482/0.1439, allocations: 28.85 MB / 0.556 GB, free: 4.367 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0192/0.1631, allocations: 8.47 MB / 0.5643 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007309/0.1704, allocations: 215.4 kB / 0.5645 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02133/0.1917, allocations: 8.245 MB / 0.5725 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01185/0.2036, allocations: 2.874 MB / 0.5753 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006248/0.2098, allocations: 1.859 MB / 0.5771 GB, free: 14.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01529/0.2251, allocations: 9.993 MB / 0.5869 GB, free: 4.625 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03069/0.2558, allocations: 16.33 MB / 0.6029 GB, free: 4.156 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008909/0.2647, allocations: 5.381 MB / 0.6081 GB, free: 14.76 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01073/0.2754, allocations: 6.101 MB / 0.6141 GB, free: 8.641 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004558/0.28, allocations: 1.539 MB / 0.6156 GB, free: 7.102 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006373/0.2863, allocations: 1.89 MB / 0.6174 GB, free: 5.211 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004904/0.2913, allocations: 3 MB / 0.6203 GB, free: 2.203 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01214/0.3034, allocations: 5.856 MB / 0.6261 GB, free: 12.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2908/0.5942, allocations: 20.66 MB / 0.6462 GB, free: 39.88 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.5942, allocations: 0 / 0.6462 GB, free: 39.88 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5942, allocations: 0.9375 kB / 0.6462 GB, free: 39.88 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006101/0.5948, allocations: 0.9688 kB / 0.6462 GB, free: 39.88 MB / 446.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.03881/0.6336, allocations: 12.07 MB / 0.658 GB, free: 36.32 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.6336, allocations: 9.219 kB / 0.658 GB, free: 36.32 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006022/0.6397, allocations: 1.345 MB / 0.6594 GB, free: 35.98 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03099/0.6707, allocations: 5.68 MB / 0.6649 GB, free: 33.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01729/0.6879, allocations: 6.338 MB / 0.6711 GB, free: 31.01 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005221/0.6885, allocations: 0.7027 MB / 0.6718 GB, free: 30.69 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004123/0.6926, allocations: 0.9323 MB / 0.6727 GB, free: 30.38 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03981/0.7324, allocations: 15.07 MB / 0.6874 GB, free: 19.23 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005374/0.7329, allocations: 19.94 kB / 0.6874 GB, free: 19.21 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004177/0.7371, allocations: 390.7 kB / 0.6878 GB, free: 18.84 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005935/0.7377, allocations: 0.5155 MB / 0.6883 GB, free: 18.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03017/0.7679, allocations: 13.74 MB / 0.7017 GB, free: 4.559 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1028/0.8707, allocations: 47.44 MB / 0.748 GB, free: 4.793 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02889/0.8996, allocations: 28.43 MB / 0.7758 GB, free: 4.652 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005851/0.9054, allocations: 2.633 MB / 0.7784 GB, free: 2.008 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005811/0.906, allocations: 236.4 kB / 0.7786 GB, free: 1.75 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/0.9062, allocations: 73.47 kB / 0.7787 GB, free: 1.668 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=372): time 8.857e-06/0.9062, allocations: 4 kB / 0.7787 GB, free: 1.664 MB / 0.5137 GB Notification: Performance of matching and sorting (n=380): time 0.04025/0.9464, allocations: 14.85 MB / 0.7932 GB, free: 2.758 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.903e-05/0.9465, allocations: 94.39 kB / 0.7933 GB, free: 2.652 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00882/0.9553, allocations: 3.764 MB / 0.7969 GB, free: 14.91 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008382/0.9562, allocations: 85.7 kB / 0.797 GB, free: 14.82 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00399/0.9602, allocations: 4.226 MB / 0.8012 GB, free: 10.58 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002282/0.9624, allocations: 1.371 MB / 0.8025 GB, free: 9.227 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003761/0.9662, allocations: 1.172 MB / 0.8036 GB, free: 8.043 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.9664, allocations: 301.1 kB / 0.8039 GB, free: 7.746 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005306/0.9717, allocations: 2.576 MB / 0.8064 GB, free: 5.168 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008128/0.9798, allocations: 5.058 MB / 0.8114 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01387/0.9937, allocations: 8.256 MB / 0.8194 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001214/0.9938, allocations: 24 kB / 0.8195 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01985/1.014, allocations: 8.62 MB / 0.8279 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001648/1.014, allocations: 40 kB / 0.8279 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002313/1.014, allocations: 84.53 kB / 0.828 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002856/1.017, allocations: 0.8736 MB / 0.8289 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005498/1.022, allocations: 1.36 MB / 0.8302 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01445/1.037, allocations: 9.027 MB / 0.839 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005266/1.042, allocations: 334.9 kB / 0.8393 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001441/1.044, allocations: 304 kB / 0.8396 GB, free: 1.609 MB / 0.5762 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.008628/1.052, allocations: 3.516 MB / 0.843 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001462/1.054, allocations: 441.2 kB / 0.8435 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01269/1.066, allocations: 5.829 MB / 0.8492 GB, free: 7.91 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-05/1.066, allocations: 44 kB / 0.8492 GB, free: 7.867 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-05/1.066, allocations: 11.59 kB / 0.8492 GB, free: 7.859 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-05/1.066, allocations: 23.92 kB / 0.8492 GB, free: 7.836 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3062/1.373, allocations: 14.45 MB / 0.8633 GB, free: 221.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/1.373, allocations: 3.938 kB / 0.8633 GB, free: 221.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002398/1.375, allocations: 0.6656 MB / 0.864 GB, free: 221.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001852/1.377, allocations: 0.7245 MB / 0.8647 GB, free: 221.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002468/1.377, allocations: 84.83 kB / 0.8648 GB, free: 221.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008257/1.385, allocations: 8.056 MB / 0.8727 GB, free: 216.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.385, allocations: 3.969 kB / 0.8727 GB, free: 216.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01158/1.397, allocations: 8.498 MB / 0.881 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002728/1.4, allocations: 0.8971 MB / 0.8818 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007333/1.4, allocations: 78.61 kB / 0.8819 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001812/1.402, allocations: 170.9 kB / 0.8821 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005065/1.403, allocations: 258.2 kB / 0.8823 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001973/1.403, allocations: 108.7 kB / 0.8824 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003459/1.406, allocations: 2.521 MB / 0.8849 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.406, allocations: 0 / 0.8849 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005812/1.412, allocations: 1.559 MB / 0.8864 GB, free: 211.1 MB / 0.5919 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.0105/1.423, allocations: 9.214 MB / 0.8954 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.008735/1.431, allocations: 6.308 MB / 0.9016 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/1.431, allocations: 0 / 0.9016 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00389/1.435, allocations: 2.756 MB / 0.9043 GB, free: 197.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004347/1.44, allocations: 0.9598 MB / 0.9052 GB, free: 196.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.084/1.524, allocations: 52.71 MB / 0.9567 GB, free: 143.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008897/1.533, allocations: 5.974 MB / 0.9625 GB, free: 137.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005272/1.538, allocations: 1.866 MB / 0.9643 GB, free: 135.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00551/1.543, allocations: 3.213 MB / 0.9675 GB, free: 132.6 MB / 0.5919 GB Notification: Performance of SimCode: time 1.242e-06/1.543, allocations: 0 / 0.9675 GB, free: 132.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4704/2.014, allocations: 121.5 MB / 1.086 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.49/22.5, allocations: 3.484 kB / 1.086 GB, free: 209.4 MB / 0.5919 GB " [Timeout remaining time 637] (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.29322426673025] Failed to read output from testmodel.py, exit status != 0: 22.832615170627832 22.6726167 22.075157923 Calling exit ...