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.001188/0.001188, allocations: 110.4 kB / 19.73 MB, free: 2.242 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.405/1.405, allocations: 230.6 MB / 253.4 MB, free: 14.41 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.001717/0.001717, allocations: 207 kB / 310 MB, free: 3.066 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.03996/0.03996, allocations: 8.924 MB / 375.4 MB, free: 6.742 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.002463/0.002463, allocations: 79.88 kB / 0.49 GB, free: 44.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08482/0.08728, allocations: 55.61 MB / 0.5443 GB, free: 5.168 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.239/0.3262, allocations: 28.95 MB / 0.5726 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01663/0.3429, allocations: 8.587 MB / 0.581 GB, free: 8.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006068/0.3489, allocations: 252.1 kB / 0.5812 GB, free: 8.582 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01831/0.3672, allocations: 8.276 MB / 0.5893 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009696/0.3769, allocations: 2.929 MB / 0.5921 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005618/0.3826, allocations: 1.941 MB / 0.594 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01457/0.3971, allocations: 10.14 MB / 0.6039 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03208/0.4292, allocations: 14.06 MB / 0.6177 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01066/0.4399, allocations: 5.506 MB / 0.623 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01279/0.4527, allocations: 6.155 MB / 0.6291 GB, free: 8.199 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005454/0.4581, allocations: 1.543 MB / 0.6306 GB, free: 6.656 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007221/0.4653, allocations: 1.91 MB / 0.6324 GB, free: 4.746 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005007/0.4703, allocations: 2.997 MB / 0.6354 GB, free: 1.742 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01079/0.4811, allocations: 5.864 MB / 0.6411 GB, free: 11.86 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02693/0.5081, allocations: 20.69 MB / 0.6613 GB, free: 7.102 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.5081, allocations: 0 / 0.6613 GB, free: 7.102 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5081, allocations: 0 / 0.6613 GB, free: 7.102 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005708/0.5086, allocations: 0 / 0.6613 GB, free: 7.102 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.03723/0.5459, allocations: 12.01 MB / 0.673 GB, free: 10.99 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.797e-05/0.5459, allocations: 11.98 kB / 0.673 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000293/0.5462, allocations: 263.5 kB / 0.6733 GB, free: 10.72 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005251/0.5515, allocations: 1.349 MB / 0.6746 GB, free: 9.363 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03212/0.5836, allocations: 5.597 MB / 0.6801 GB, free: 3.754 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01667/0.6003, allocations: 6.391 MB / 0.6863 GB, free: 13.27 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009423/0.6012, allocations: 0.7064 MB / 0.687 GB, free: 12.56 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004121/0.6053, allocations: 0.9218 MB / 0.6879 GB, free: 11.64 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03822/0.6435, allocations: 15.12 MB / 0.7027 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005101/0.6441, allocations: 11.89 kB / 0.7027 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003046/0.6471, allocations: 395.9 kB / 0.703 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006432/0.6477, allocations: 0.5194 MB / 0.7035 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03066/0.6784, allocations: 13.78 MB / 0.717 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09112/0.7695, allocations: 46.54 MB / 0.7625 GB, free: 14.04 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01588/0.7854, allocations: 8.269 MB / 0.7705 GB, free: 6.98 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005106/0.7905, allocations: 2.637 MB / 0.7731 GB, free: 4.344 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004368/0.7909, allocations: 102.8 kB / 0.7732 GB, free: 4.242 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.404e-05/0.791, allocations: 81.47 kB / 0.7733 GB, free: 4.152 MB / 0.545 GB Notification: Performance of pre-optimization done (n=372): time 5.209e-06/0.791, allocations: 3.938 kB / 0.7733 GB, free: 4.148 MB / 0.545 GB Notification: Performance of matching and sorting (n=380): time 0.4027/1.194, allocations: 14.66 MB / 0.7876 GB, free: 162.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/1.194, allocations: 90.7 kB / 0.7877 GB, free: 162.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005181/1.199, allocations: 3.766 MB / 0.7914 GB, free: 161.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004059/1.199, allocations: 87.45 kB / 0.7915 GB, free: 161.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00251/1.202, allocations: 4.232 MB / 0.7956 GB, free: 158.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001194/1.203, allocations: 1.37 MB / 0.7969 GB, free: 157.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001613/1.205, allocations: 1.177 MB / 0.7981 GB, free: 157 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.389e-05/1.205, allocations: 305.7 kB / 0.7984 GB, free: 156.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003644/1.208, allocations: 2.581 MB / 0.8009 GB, free: 155.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004345/1.213, allocations: 5.059 MB / 0.8058 GB, free: 151.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008038/1.221, allocations: 8.269 MB / 0.8139 GB, free: 145.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.709e-05/1.221, allocations: 24 kB / 0.8139 GB, free: 145.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.0118/1.233, allocations: 8.64 MB / 0.8224 GB, free: 142.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.762e-05/1.233, allocations: 45.44 kB / 0.8224 GB, free: 142.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001131/1.233, allocations: 82.12 kB / 0.8225 GB, free: 142.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/1.235, allocations: 0.8754 MB / 0.8233 GB, free: 142 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004047/1.239, allocations: 1.368 MB / 0.8247 GB, free: 141.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00872/1.248, allocations: 8.817 MB / 0.8333 GB, free: 136.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004095/1.252, allocations: 333.6 kB / 0.8336 GB, free: 136.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006996/1.252, allocations: 312.5 kB / 0.8339 GB, free: 136.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.004631/1.257, allocations: 3.505 MB / 0.8373 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009396/1.258, allocations: 433.5 kB / 0.8377 GB, free: 134.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007773/1.266, allocations: 5.846 MB / 0.8434 GB, free: 130.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/1.266, allocations: 40 kB / 0.8435 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/1.266, allocations: 8 kB / 0.8435 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.989e-05/1.266, allocations: 19.92 kB / 0.8435 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01941/1.285, allocations: 14.49 MB / 0.8577 GB, free: 116.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/1.285, allocations: 0 / 0.8577 GB, free: 116.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002295/1.288, allocations: 0.6709 MB / 0.8583 GB, free: 115.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001784/1.289, allocations: 0.7183 MB / 0.859 GB, free: 114.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001966/1.29, allocations: 87.97 kB / 0.8591 GB, free: 114.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007402/1.297, allocations: 7.853 MB / 0.8668 GB, free: 106.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.297, allocations: 4.031 kB / 0.8668 GB, free: 106.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009835/1.307, allocations: 8.53 MB / 0.8751 GB, free: 98 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001986/1.309, allocations: 0.8367 MB / 0.8759 GB, free: 97.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007337/1.309, allocations: 83.77 kB / 0.876 GB, free: 97.08 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001983/1.311, allocations: 173.8 kB / 0.8762 GB, free: 96.91 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004674/1.312, allocations: 270.5 kB / 0.8764 GB, free: 96.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000205/1.312, allocations: 108 kB / 0.8765 GB, free: 96.54 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003055/1.315, allocations: 2.528 MB / 0.879 GB, free: 94.03 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/1.315, allocations: 0 / 0.879 GB, free: 94.03 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005575/1.321, allocations: 1.559 MB / 0.8805 GB, free: 92.47 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.01034/1.331, allocations: 9.223 MB / 0.8895 GB, free: 83.14 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008471/1.34, allocations: 6.32 MB / 0.8957 GB, free: 76.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/1.34, allocations: 0 / 0.8957 GB, free: 76.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003674/1.343, allocations: 2.765 MB / 0.8984 GB, free: 74.01 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004261/1.348, allocations: 0.9703 MB / 0.8993 GB, free: 73.09 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0696/1.417, allocations: 52.81 MB / 0.9509 GB, free: 17.28 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005816/1.423, allocations: 5.97 MB / 0.9567 GB, free: 11.26 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004137/1.427, allocations: 1.87 MB / 0.9586 GB, free: 9.387 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004175/1.431, allocations: 3.237 MB / 0.9617 GB, free: 6.148 MB / 0.545 GB Notification: Performance of SimCode: time 1.413e-06/1.431, allocations: 0 / 0.9617 GB, free: 6.148 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4302/1.861, allocations: 127.1 MB / 1.086 GB, free: 130.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.13/21.99, allocations: 4.062 kB / 1.086 GB, free: 130.3 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.244971682084724] Failed to read output from testmodel.py, exit status != 0: 22.21920891001355 22.22981456 21.719187325 Calling exit ...