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.001287/0.001287, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.403/1.403, allocations: 230.6 MB / 252.7 MB, free: 8.07 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.001938/0.001938, allocations: 222.2 kB / 309.2 MB, free: 2.965 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.04126/0.04126, allocations: 8.917 MB / 374.6 MB, free: 1.754 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="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: 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.00246/0.00246, allocations: 87.86 kB / 0.4892 GB, free: 7.164 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2722, allocations: 55.6 MB / 0.5435 GB, free: 26.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02084/0.2931, allocations: 24.76 MB / 0.5676 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01744/0.3105, allocations: 8.216 MB / 0.5757 GB, free: 4.418 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006787/0.3173, allocations: 256.7 kB / 0.5759 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01692/0.3342, allocations: 7.613 MB / 0.5833 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01167/0.3459, allocations: 2.84 MB / 0.5861 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00652/0.3524, allocations: 1.85 MB / 0.5879 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01722/0.3697, allocations: 10.14 MB / 0.5978 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02344/0.3931, allocations: 13.87 MB / 0.6114 GB, free: 7.129 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009719/0.4028, allocations: 5.513 MB / 0.6168 GB, free: 1.602 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01107/0.4139, allocations: 5.874 MB / 0.6225 GB, free: 11.71 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00377/0.4177, allocations: 1.539 MB / 0.624 GB, free: 10.17 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005639/0.4233, allocations: 1.882 MB / 0.6258 GB, free: 8.285 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004135/0.4274, allocations: 2.996 MB / 0.6288 GB, free: 5.281 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008245/0.4357, allocations: 4.557 MB / 0.6332 GB, free: 0.707 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02469/0.4604, allocations: 20.79 MB / 0.6535 GB, free: 11.85 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4604, allocations: 0 / 0.6535 GB, free: 11.85 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.4604, allocations: 0 / 0.6535 GB, free: 11.85 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004997/0.4609, allocations: 0 / 0.6535 GB, free: 11.85 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.03514/0.496, allocations: 12 MB / 0.6652 GB, free: 15.76 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.4961, allocations: 8.031 kB / 0.6652 GB, free: 15.75 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004497/0.5006, allocations: 1.345 MB / 0.6665 GB, free: 14.4 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03016/0.5307, allocations: 5.605 MB / 0.672 GB, free: 8.781 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01461/0.5453, allocations: 6.395 MB / 0.6783 GB, free: 2.293 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007006/0.546, allocations: 0.7064 MB / 0.679 GB, free: 1.586 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003497/0.5495, allocations: 0.9256 MB / 0.6799 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03659/0.5861, allocations: 15.25 MB / 0.6948 GB, free: 1.289 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002725/0.5864, allocations: 15.91 kB / 0.6948 GB, free: 1.273 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00195/0.5883, allocations: 392 kB / 0.6951 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005556/0.5889, allocations: 0.5155 MB / 0.6956 GB, free: 380 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4697/1.059, allocations: 13.72 MB / 0.709 GB, free: 103.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07061/1.129, allocations: 42.69 MB / 0.7507 GB, free: 77.88 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01142/1.141, allocations: 8.179 MB / 0.7587 GB, free: 72.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003172/1.144, allocations: 2.629 MB / 0.7613 GB, free: 70.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002661/1.144, allocations: 98.77 kB / 0.7614 GB, free: 70.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.147e-05/1.144, allocations: 73.48 kB / 0.7615 GB, free: 70.12 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 6.191e-06/1.144, allocations: 3.875 kB / 0.7615 GB, free: 70.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.02395/1.168, allocations: 14.59 MB / 0.7757 GB, free: 55.88 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/1.168, allocations: 94.38 kB / 0.7758 GB, free: 55.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004265/1.172, allocations: 3.904 MB / 0.7796 GB, free: 51.99 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002906/1.173, allocations: 89.69 kB / 0.7797 GB, free: 51.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00155/1.174, allocations: 4.225 MB / 0.7838 GB, free: 47.75 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007609/1.175, allocations: 1.37 MB / 0.7852 GB, free: 46.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001263/1.176, allocations: 1.176 MB / 0.7863 GB, free: 45.21 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.438e-05/1.176, allocations: 309.1 kB / 0.7866 GB, free: 44.91 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002891/1.179, allocations: 2.577 MB / 0.7891 GB, free: 42.33 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003828/1.183, allocations: 5.091 MB / 0.7941 GB, free: 36.06 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007419/1.19, allocations: 8.253 MB / 0.8021 GB, free: 26.63 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.294e-05/1.19, allocations: 24 kB / 0.8022 GB, free: 26.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01238/1.203, allocations: 8.619 MB / 0.8106 GB, free: 17.96 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.886e-05/1.203, allocations: 44.53 kB / 0.8106 GB, free: 17.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001234/1.203, allocations: 84 kB / 0.8107 GB, free: 17.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002005/1.205, allocations: 0.8506 MB / 0.8115 GB, free: 16.97 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004097/1.209, allocations: 1.373 MB / 0.8129 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008968/1.218, allocations: 8.626 MB / 0.8213 GB, free: 6.742 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004119/1.222, allocations: 323.7 kB / 0.8216 GB, free: 6.426 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005576/1.223, allocations: 315.9 kB / 0.8219 GB, free: 6.117 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.004555/1.227, allocations: 3.513 MB / 0.8253 GB, free: 2.59 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008417/1.228, allocations: 433.2 kB / 0.8258 GB, free: 2.164 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009184/1.237, allocations: 5.829 MB / 0.8315 GB, free: 12.3 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.29e-05/1.237, allocations: 40 kB / 0.8315 GB, free: 12.26 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.899e-05/1.237, allocations: 11.94 kB / 0.8315 GB, free: 12.25 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.522e-05/1.237, allocations: 23.86 kB / 0.8315 GB, free: 12.23 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02545/1.263, allocations: 13.85 MB / 0.8451 GB, free: 14.35 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.45e-05/1.263, allocations: 4 kB / 0.8451 GB, free: 14.34 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002669/1.266, allocations: 0.667 MB / 0.8457 GB, free: 13.68 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/1.268, allocations: 0.7176 MB / 0.8464 GB, free: 12.95 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002532/1.268, allocations: 83.97 kB / 0.8465 GB, free: 12.87 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01061/1.279, allocations: 7.668 MB / 0.854 GB, free: 4.988 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.712e-06/1.279, allocations: 7.938 kB / 0.854 GB, free: 4.98 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.014/1.293, allocations: 8.488 MB / 0.8623 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00252/1.295, allocations: 0.8445 MB / 0.8631 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006986/1.296, allocations: 64 kB / 0.8632 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001908/1.298, allocations: 179.9 kB / 0.8633 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005225/1.298, allocations: 274.5 kB / 0.8636 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002334/1.298, allocations: 108 kB / 0.8637 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004055/1.302, allocations: 2.52 MB / 0.8662 GB, free: 8.422 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/1.302, allocations: 3.938 kB / 0.8662 GB, free: 8.418 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005674/1.308, allocations: 1.559 MB / 0.8677 GB, free: 6.859 MB / 0.5294 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.01399/1.322, allocations: 9.21 MB / 0.8767 GB, free: 13.54 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01166/1.334, allocations: 6.306 MB / 0.8828 GB, free: 7.207 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/1.334, allocations: 0 / 0.8828 GB, free: 7.207 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005116/1.339, allocations: 2.746 MB / 0.8855 GB, free: 4.434 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004775/1.344, allocations: 0.974 MB / 0.8865 GB, free: 3.48 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3356/1.679, allocations: 52.71 MB / 0.9379 GB, free: 178.3 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007013/1.686, allocations: 5.51 MB / 0.9433 GB, free: 176.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005182/1.691, allocations: 1.868 MB / 0.9451 GB, free: 176.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004622/1.696, allocations: 3.237 MB / 0.9483 GB, free: 173.8 MB / 0.5763 GB Notification: Performance of SimCode: time 1.152e-06/1.696, allocations: 0 / 0.9483 GB, free: 173.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1896/1.886, allocations: 124.1 MB / 1.07 GB, free: 69.43 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.6/18.49, allocations: 18.05 kB / 1.07 GB, free: 69.42 MB / 0.5763 GB " [Timeout remaining time 641] (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: 25.006301812361926] Failed to read output from testmodel.py, exit status != 0: 18.6584321311675 18.669349885 18.206380677 Calling exit ...