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.0009875/0.0009875, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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 0.8903/0.8903, allocations: 177.2 MB / 199.4 MB, free: 5.934 MB / 186.7 MB " [Timeout remaining time 179] 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.001033/0.001033, allocations: 164.1 kB / 256 MB, free: 13.35 MB / 250.7 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.02224/0.02224, allocations: 6.667 MB / 319 MB, free: 26.77 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 445.4 MB, free: 37.6 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.306e-06/9.498e-06, allocations: 2.281 kB / 445.4 MB, free: 37.6 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.013/0.01301, allocations: 24.78 MB / 470.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009933/0.02294, allocations: 8.236 MB / 478.4 MB, free: 4.438 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002188/0.02513, allocations: 254.7 kB / 478.7 MB, free: 4.188 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00665/0.03178, allocations: 8.027 MB / 486.7 MB, free: 12.14 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004126/0.03591, allocations: 2.909 MB / 489.6 MB, free: 9.219 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002274/0.03818, allocations: 1.878 MB / 491.5 MB, free: 7.344 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007283/0.04546, allocations: 10.47 MB / 0.4902 GB, free: 12.84 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01229/0.05775, allocations: 13.9 MB / 0.5038 GB, free: 14.79 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008516/0.06627, allocations: 8.144 MB / 0.5117 GB, free: 6.633 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005181/0.07145, allocations: 5.266 MB / 0.5169 GB, free: 1.355 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001327/0.07278, allocations: 1.543 MB / 0.5184 GB, free: 15.81 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001986/0.07476, allocations: 1.901 MB / 0.5203 GB, free: 13.91 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001755/0.07652, allocations: 3.051 MB / 0.5232 GB, free: 10.85 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003227/0.07975, allocations: 3.926 MB / 0.5271 GB, free: 6.918 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01308/0.09283, allocations: 20.94 MB / 0.5475 GB, free: 1.926 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.09283, allocations: 0 / 0.5475 GB, free: 1.926 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.09283, allocations: 0 / 0.5475 GB, free: 1.926 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002513/0.09308, allocations: 0 / 0.5475 GB, free: 1.926 MB / 410.7 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.2906/0.3837, allocations: 11.91 MB / 0.5591 GB, free: 93.89 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.3838, allocations: 8.781 kB / 0.5591 GB, free: 93.88 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001455/0.3852, allocations: 1.356 MB / 0.5605 GB, free: 92.53 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01374/0.399, allocations: 5.604 MB / 0.5659 GB, free: 86.98 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007572/0.4066, allocations: 6.39 MB / 0.5722 GB, free: 80.55 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002294/0.4068, allocations: 0.7058 MB / 0.5729 GB, free: 79.86 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001151/0.4079, allocations: 0.929 MB / 0.5738 GB, free: 78.93 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01513/0.4231, allocations: 15.26 MB / 0.5887 GB, free: 63.59 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001381/0.4232, allocations: 27.36 kB / 0.5887 GB, free: 63.57 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005849/0.4238, allocations: 387.8 kB / 0.5891 GB, free: 63.2 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002362/0.424, allocations: 0.5194 MB / 0.5896 GB, free: 62.68 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01512/0.4391, allocations: 13.72 MB / 0.603 GB, free: 48.93 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03719/0.4763, allocations: 42.69 MB / 0.6447 GB, free: 5.5 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007095/0.4834, allocations: 8.183 MB / 0.6527 GB, free: 14.52 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002679/0.4861, allocations: 2.629 MB / 0.6552 GB, free: 11.89 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001755/0.4863, allocations: 94.84 kB / 0.6553 GB, free: 11.8 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/0.4863, allocations: 69.48 kB / 0.6554 GB, free: 11.72 MB / 426.8 MB Notification: Performance of pre-optimization done (n=372): time 5.3e-06/0.4863, allocations: 0 / 0.6554 GB, free: 11.72 MB / 426.8 MB Notification: Performance of matching and sorting (n=380): time 0.01874/0.5051, allocations: 14.6 MB / 0.6696 GB, free: 13.09 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/0.5051, allocations: 90.39 kB / 0.6697 GB, free: 12.99 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003983/0.5091, allocations: 3.909 MB / 0.6735 GB, free: 9.09 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001549/0.5093, allocations: 85.7 kB / 0.6736 GB, free: 9 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001928/0.5112, allocations: 4.218 MB / 0.6777 GB, free: 4.773 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006925/0.5119, allocations: 1.349 MB / 0.6791 GB, free: 3.441 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/0.5129, allocations: 1.164 MB / 0.6802 GB, free: 2.266 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 6.44e-05/0.513, allocations: 313.1 kB / 0.6805 GB, free: 1.957 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002661/0.5157, allocations: 2.577 MB / 0.683 GB, free: 15.38 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003868/0.5195, allocations: 5.079 MB / 0.688 GB, free: 9.121 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007012/0.5265, allocations: 8.265 MB / 0.696 GB, free: 15.68 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.581e-05/0.5266, allocations: 24 kB / 0.6961 GB, free: 15.65 MB / 474.8 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.009129/0.5357, allocations: 8.611 MB / 0.7045 GB, free: 7.008 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.122e-05/0.5357, allocations: 48 kB / 0.7045 GB, free: 6.961 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.206e-05/0.5358, allocations: 80 kB / 0.7046 GB, free: 6.883 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001419/0.5372, allocations: 0.8506 MB / 0.7054 GB, free: 6.031 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002445/0.5397, allocations: 1.369 MB / 0.7068 GB, free: 4.66 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008056/0.5477, allocations: 8.637 MB / 0.7152 GB, free: 11.8 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002235/0.55, allocations: 327.7 kB / 0.7155 GB, free: 11.48 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002928/0.5503, allocations: 315.9 kB / 0.7158 GB, free: 11.17 MB / 490.8 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.00388/0.5541, allocations: 3.507 MB / 0.7192 GB, free: 7.652 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004918/0.5546, allocations: 433.3 kB / 0.7197 GB, free: 7.227 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006589/0.5612, allocations: 5.827 MB / 0.7253 GB, free: 1.363 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/0.5612, allocations: 40 kB / 0.7254 GB, free: 1.324 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.5613, allocations: 15.98 kB / 0.7254 GB, free: 1.309 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-05/0.5613, allocations: 15.94 kB / 0.7254 GB, free: 1.293 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01525/0.5765, allocations: 13.86 MB / 0.7389 GB, free: 3.363 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.5765, allocations: 4 kB / 0.739 GB, free: 3.359 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.5779, allocations: 0.667 MB / 0.7396 GB, free: 2.691 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001134/0.579, allocations: 0.7138 MB / 0.7403 GB, free: 1.973 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000176/0.5792, allocations: 83.97 kB / 0.7404 GB, free: 1.891 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1604/0.7397, allocations: 7.659 MB / 0.7479 GB, free: 167.5 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.7397, allocations: 3.688 kB / 0.7479 GB, free: 167.5 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007341/0.747, allocations: 8.498 MB / 0.7562 GB, free: 164.1 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001178/0.7482, allocations: 0.8405 MB / 0.757 GB, free: 163.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000277/0.7485, allocations: 81.41 kB / 0.7571 GB, free: 163.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008925/0.7494, allocations: 172.2 kB / 0.7572 GB, free: 163.8 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002604/0.7496, allocations: 269.8 kB / 0.7575 GB, free: 163.8 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/0.7498, allocations: 111.7 kB / 0.7576 GB, free: 163.7 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.002239/0.752, allocations: 2.519 MB / 0.76 GB, free: 162.8 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.9e-07/0.752, allocations: 4.438 kB / 0.7601 GB, free: 162.8 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.002915/0.7549, allocations: 1.559 MB / 0.7616 GB, free: 162.7 MB / 0.4949 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.007035/0.7619, allocations: 9.201 MB / 0.7706 GB, free: 157.8 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.006034/0.768, allocations: 6.294 MB / 0.7767 GB, free: 152.4 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.768, allocations: 0 / 0.7767 GB, free: 152.4 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002337/0.7703, allocations: 2.758 MB / 0.7794 GB, free: 150 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002563/0.7729, allocations: 0.9654 MB / 0.7803 GB, free: 149.2 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04896/0.8218, allocations: 52.72 MB / 0.8318 GB, free: 95.5 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003243/0.8251, allocations: 5.517 MB / 0.8372 GB, free: 89.93 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.002646/0.8277, allocations: 1.866 MB / 0.839 GB, free: 88.06 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002206/0.8299, allocations: 3.234 MB / 0.8422 GB, free: 84.83 MB / 0.4949 GB Notification: Performance of SimCode: time 1.182e-06/0.8299, allocations: 0 / 0.8422 GB, free: 84.83 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.257/1.087, allocations: 123.9 MB / 0.9631 GB, free: 154.1 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.82, allocations: 4.062 kB / 0.9631 GB, free: 154.1 MB / 0.4949 GB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.079521763138473] Failed to read output from testmodel.py, exit status != 0: 11.955795749090612 11.968555837 11.873439421 Calling exit ...