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.001254/0.001254, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.415/1.415, allocations: 230.6 MB / 253.5 MB, free: 14.27 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.001498/0.001498, allocations: 214.9 kB / 310 MB, free: 3.027 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.04006/0.04006, allocations: 8.936 MB / 375.4 MB, free: 6.57 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.002423/0.002423, allocations: 83.88 kB / 0.4899 GB, free: 44.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08583/0.08825, allocations: 55.61 MB / 0.5442 GB, free: 5.023 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2388/0.327, allocations: 24.74 MB / 0.5684 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01493/0.342, allocations: 8.193 MB / 0.5764 GB, free: 9.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005995/0.348, allocations: 251.1 kB / 0.5766 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01818/0.3661, allocations: 7.617 MB / 0.5841 GB, free: 6.578 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01071/0.3768, allocations: 2.861 MB / 0.5869 GB, free: 4.824 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006432/0.3833, allocations: 1.864 MB / 0.5887 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01359/0.3969, allocations: 10.12 MB / 0.5986 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02975/0.4266, allocations: 14.06 MB / 0.6123 GB, free: 5.445 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01042/0.437, allocations: 5.504 MB / 0.6177 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01179/0.4488, allocations: 6.152 MB / 0.6237 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004609/0.4534, allocations: 1.543 MB / 0.6252 GB, free: 10.77 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007607/0.461, allocations: 1.914 MB / 0.6271 GB, free: 8.859 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00682/0.4679, allocations: 2.996 MB / 0.63 GB, free: 5.855 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01217/0.48, allocations: 4.553 MB / 0.6344 GB, free: 1.285 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02882/0.5089, allocations: 20.78 MB / 0.6547 GB, free: 12.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.5089, allocations: 0 / 0.6547 GB, free: 12.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5089, allocations: 4 kB / 0.6547 GB, free: 12.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005876/0.5094, allocations: 0 / 0.6547 GB, free: 12.43 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.03688/0.5463, allocations: 12.01 MB / 0.6665 GB, free: 332 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.5464, allocations: 15.98 kB / 0.6665 GB, free: 316 kB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002761/0.5467, allocations: 255.5 kB / 0.6667 GB, free: 60 kB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005154/0.5518, allocations: 1.345 MB / 0.668 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03176/0.5836, allocations: 5.605 MB / 0.6735 GB, free: 9.086 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01541/0.599, allocations: 6.391 MB / 0.6797 GB, free: 2.602 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008336/0.5998, allocations: 0.7064 MB / 0.6804 GB, free: 1.895 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004226/0.604, allocations: 0.9296 MB / 0.6813 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0431/0.6471, allocations: 15.25 MB / 0.6962 GB, free: 1.594 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005153/0.6476, allocations: 19.94 kB / 0.6963 GB, free: 1.574 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003131/0.6508, allocations: 388 kB / 0.6966 GB, free: 1.195 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006432/0.6514, allocations: 0.5116 MB / 0.6971 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03479/0.6862, allocations: 13.78 MB / 0.7106 GB, free: 2.871 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08994/0.7761, allocations: 42.72 MB / 0.7523 GB, free: 7.031 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01605/0.7922, allocations: 8.184 MB / 0.7603 GB, free: 48 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005262/0.7975, allocations: 2.633 MB / 0.7629 GB, free: 13.41 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004489/0.7979, allocations: 90.84 kB / 0.763 GB, free: 13.32 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.293e-05/0.798, allocations: 73.48 kB / 0.763 GB, free: 13.24 MB / 0.545 GB Notification: Performance of pre-optimization done (n=372): time 8.075e-06/0.798, allocations: 0 / 0.763 GB, free: 13.24 MB / 0.545 GB Notification: Performance of matching and sorting (n=380): time 0.4229/1.221, allocations: 14.68 MB / 0.7774 GB, free: 164.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/1.221, allocations: 94.33 kB / 0.7774 GB, free: 164.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004789/1.226, allocations: 3.763 MB / 0.7811 GB, free: 164.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004862/1.226, allocations: 85.86 kB / 0.7812 GB, free: 164.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002208/1.228, allocations: 4.23 MB / 0.7853 GB, free: 163.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001102/1.229, allocations: 1.375 MB / 0.7867 GB, free: 162.4 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001541/1.231, allocations: 1.177 MB / 0.7878 GB, free: 161.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.59e-05/1.231, allocations: 302.5 kB / 0.7881 GB, free: 161.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003601/1.235, allocations: 2.579 MB / 0.7906 GB, free: 160.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004497/1.239, allocations: 5.082 MB / 0.7956 GB, free: 156.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00865/1.248, allocations: 8.271 MB / 0.8037 GB, free: 150.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001259/1.248, allocations: 24.92 kB / 0.8037 GB, free: 150.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.0139/1.262, allocations: 8.63 MB / 0.8121 GB, free: 147.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.107e-05/1.262, allocations: 40.81 kB / 0.8122 GB, free: 147.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001612/1.262, allocations: 82.75 kB / 0.8122 GB, free: 147.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002161/1.264, allocations: 0.8764 MB / 0.8131 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004357/1.269, allocations: 1.358 MB / 0.8144 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008991/1.278, allocations: 8.696 MB / 0.8229 GB, free: 141.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004266/1.282, allocations: 332.3 kB / 0.8232 GB, free: 141.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007596/1.283, allocations: 304.9 kB / 0.8235 GB, free: 141.2 MB / 0.545 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.00473/1.287, allocations: 3.515 MB / 0.827 GB, free: 139.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009963/1.288, allocations: 433.9 kB / 0.8274 GB, free: 139.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00835/1.297, allocations: 5.837 MB / 0.8331 GB, free: 136.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-05/1.297, allocations: 39.16 kB / 0.8331 GB, free: 136.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/1.297, allocations: 11.19 kB / 0.8331 GB, free: 136.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.71e-05/1.297, allocations: 23.38 kB / 0.8331 GB, free: 136.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02053/1.317, allocations: 13.87 MB / 0.8467 GB, free: 124.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/1.317, allocations: 4 kB / 0.8467 GB, free: 124.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002354/1.32, allocations: 0.6709 MB / 0.8473 GB, free: 123.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001825/1.321, allocations: 0.7296 MB / 0.8481 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002309/1.322, allocations: 87.91 kB / 0.8481 GB, free: 123.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007308/1.329, allocations: 7.724 MB / 0.8557 GB, free: 115.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/1.329, allocations: 4 kB / 0.8557 GB, free: 115.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01009/1.339, allocations: 8.521 MB / 0.864 GB, free: 106.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001954/1.341, allocations: 0.8484 MB / 0.8648 GB, free: 105.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000651/1.342, allocations: 75.94 kB / 0.8649 GB, free: 105.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001776/1.343, allocations: 175.9 kB / 0.8651 GB, free: 105.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004763/1.344, allocations: 267.4 kB / 0.8653 GB, free: 105.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000209/1.344, allocations: 116 kB / 0.8654 GB, free: 105.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003191/1.347, allocations: 2.532 MB / 0.8679 GB, free: 102.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/1.347, allocations: 0 / 0.8679 GB, free: 102.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005523/1.353, allocations: 1.555 MB / 0.8694 GB, free: 101 MB / 0.545 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.01072/1.364, allocations: 9.223 MB / 0.8784 GB, free: 91.67 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009069/1.373, allocations: 6.312 MB / 0.8846 GB, free: 85.34 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/1.373, allocations: 0 / 0.8846 GB, free: 85.34 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003963/1.377, allocations: 2.767 MB / 0.8873 GB, free: 82.55 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004527/1.381, allocations: 0.9736 MB / 0.8883 GB, free: 81.63 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07083/1.452, allocations: 52.8 MB / 0.9398 GB, free: 25.83 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004869/1.457, allocations: 5.517 MB / 0.9452 GB, free: 20.26 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004/1.461, allocations: 1.878 MB / 0.947 GB, free: 18.38 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003338/1.464, allocations: 3.233 MB / 0.9502 GB, free: 15.14 MB / 0.545 GB Notification: Performance of SimCode: time 1.202e-06/1.464, allocations: 2.297 kB / 0.9502 GB, free: 15.14 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3898/1.854, allocations: 126.9 MB / 1.074 GB, free: 140.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.33/22.19, allocations: 4.062 kB / 1.074 GB, free: 140.8 MB / 0.5763 GB " [Timeout remaining time 638] (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: 32.45789171301294] Failed to read output from testmodel.py, exit status != 0: 22.41128184297122 22.421563075 21.910174864 Calling exit ...