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.0008426/0.0008426, 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.8955/0.8955, allocations: 177.1 MB / 199.4 MB, free: 5.938 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.001083/0.001083, allocations: 152.6 kB / 256 MB, free: 13.34 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.02284/0.02284, allocations: 6.662 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 2.806e-06/2.806e-06, allocations: 3.984 kB / 445.4 MB, free: 37.61 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.922e-05/2.202e-05, 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.01404/0.01406, allocations: 24.77 MB / 470.2 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.02625, allocations: 8.24 MB / 478.5 MB, free: 4.445 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0037/0.02995, allocations: 254.7 kB / 478.7 MB, free: 4.195 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008006/0.03796, allocations: 8.017 MB / 486.7 MB, free: 12.16 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006301/0.04426, allocations: 2.919 MB / 489.6 MB, free: 9.227 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002725/0.04698, allocations: 1.877 MB / 491.5 MB, free: 7.352 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00788/0.05486, allocations: 10.46 MB / 0.4902 GB, free: 12.85 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01501/0.06987, allocations: 13.92 MB / 0.5038 GB, free: 14.79 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007783/0.07765, allocations: 8.136 MB / 0.5117 GB, free: 6.641 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005439/0.08309, allocations: 5.266 MB / 0.5169 GB, free: 1.363 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001861/0.08495, allocations: 1.539 MB / 0.5184 GB, free: 15.82 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002899/0.08785, allocations: 1.909 MB / 0.5203 GB, free: 13.91 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001582/0.08943, allocations: 3.055 MB / 0.5232 GB, free: 10.85 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003763/0.0932, allocations: 3.918 MB / 0.5271 GB, free: 6.926 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01474/0.1079, allocations: 20.94 MB / 0.5475 GB, free: 1.93 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1079, allocations: 0 / 0.5475 GB, free: 1.93 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1079, allocations: 0 / 0.5475 GB, free: 1.93 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000398/0.1083, allocations: 3.938 kB / 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.3124/0.4207, allocations: 11.91 MB / 0.5591 GB, free: 93.89 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.4207, allocations: 8.031 kB / 0.5592 GB, free: 93.88 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001135/0.4219, allocations: 1.344 MB / 0.5605 GB, free: 92.54 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01464/0.4365, allocations: 5.61 MB / 0.5659 GB, free: 86.99 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01056/0.4471, allocations: 6.386 MB / 0.5722 GB, free: 80.56 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004601/0.4475, allocations: 0.7019 MB / 0.5729 GB, free: 79.87 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003805/0.4513, allocations: 0.9329 MB / 0.5738 GB, free: 78.95 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02949/0.4808, allocations: 15.25 MB / 0.5887 GB, free: 63.61 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003069/0.4811, allocations: 27.89 kB / 0.5887 GB, free: 63.58 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002617/0.4837, allocations: 395.6 kB / 0.5891 GB, free: 63.21 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002906/0.484, allocations: 0.5155 MB / 0.5896 GB, free: 62.69 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02161/0.5057, allocations: 13.72 MB / 0.603 GB, free: 48.95 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05943/0.5651, allocations: 42.7 MB / 0.6447 GB, free: 5.512 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008853/0.5739, allocations: 8.193 MB / 0.6527 GB, free: 14.54 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003151/0.5771, allocations: 2.629 MB / 0.6552 GB, free: 11.91 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002411/0.5773, allocations: 90.84 kB / 0.6553 GB, free: 11.82 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.905e-05/0.5774, allocations: 73.48 kB / 0.6554 GB, free: 11.73 MB / 426.8 MB Notification: Performance of pre-optimization done (n=372): time 5.5e-06/0.5774, allocations: 0 / 0.6554 GB, free: 11.73 MB / 426.8 MB Notification: Performance of matching and sorting (n=380): time 0.02349/0.6009, allocations: 14.59 MB / 0.6696 GB, free: 13.11 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.597e-05/0.6009, allocations: 90.39 kB / 0.6697 GB, free: 13.01 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005465/0.6064, allocations: 3.909 MB / 0.6735 GB, free: 9.109 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006205/0.607, allocations: 85.7 kB / 0.6736 GB, free: 9.02 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002135/0.6092, allocations: 4.214 MB / 0.6777 GB, free: 4.797 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001621/0.6108, allocations: 1.351 MB / 0.6791 GB, free: 3.465 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001631/0.6124, allocations: 1.172 MB / 0.6802 GB, free: 2.281 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 8.058e-05/0.6125, allocations: 305.1 kB / 0.6805 GB, free: 1.98 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003198/0.6157, allocations: 2.577 MB / 0.683 GB, free: 15.4 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004562/0.6203, allocations: 5.079 MB / 0.688 GB, free: 9.145 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009035/0.6293, allocations: 8.265 MB / 0.696 GB, free: 15.7 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.922e-05/0.6294, allocations: 24 kB / 0.6961 GB, free: 15.68 MB / 474.8 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01518/0.6446, allocations: 8.618 MB / 0.7045 GB, free: 7.027 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.647e-05/0.6446, allocations: 42.97 kB / 0.7045 GB, free: 6.988 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001387/0.6448, allocations: 84 kB / 0.7046 GB, free: 6.906 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/0.6464, allocations: 0.8564 MB / 0.7054 GB, free: 6.047 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003213/0.6496, allocations: 1.361 MB / 0.7068 GB, free: 4.684 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008671/0.6582, allocations: 8.648 MB / 0.7152 GB, free: 11.82 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003845/0.6621, allocations: 327.6 kB / 0.7155 GB, free: 11.5 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001197/0.6633, allocations: 308 kB / 0.7158 GB, free: 11.2 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.006375/0.6697, allocations: 3.509 MB / 0.7192 GB, free: 7.672 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009631/0.6706, allocations: 437.2 kB / 0.7197 GB, free: 7.242 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008135/0.6788, allocations: 5.823 MB / 0.7254 GB, free: 1.383 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.658e-05/0.6788, allocations: 36 kB / 0.7254 GB, free: 1.348 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/0.6788, allocations: 8 kB / 0.7254 GB, free: 1.34 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.438e-05/0.6788, allocations: 19.92 kB / 0.7254 GB, free: 1.32 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02141/0.7002, allocations: 13.87 MB / 0.739 GB, free: 3.363 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.7002, allocations: 0 / 0.739 GB, free: 3.363 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/0.702, allocations: 0.6709 MB / 0.7396 GB, free: 2.691 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001339/0.7034, allocations: 0.7095 MB / 0.7403 GB, free: 1.977 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002386/0.7036, allocations: 83.97 kB / 0.7404 GB, free: 1.895 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2118/0.9154, allocations: 7.658 MB / 0.7479 GB, free: 166.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.9154, allocations: 7.531 kB / 0.7479 GB, free: 166.4 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009948/0.9253, allocations: 8.493 MB / 0.7562 GB, free: 162.9 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001825/0.9272, allocations: 0.84 MB / 0.757 GB, free: 162.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000574/0.9277, allocations: 78.91 kB / 0.7571 GB, free: 162.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.9289, allocations: 172.5 kB / 0.7572 GB, free: 162.6 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004108/0.9294, allocations: 269.3 kB / 0.7575 GB, free: 162.6 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/0.9295, allocations: 111 kB / 0.7576 GB, free: 162.6 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.003123/0.9326, allocations: 2.522 MB / 0.76 GB, free: 161.6 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.01e-07/0.9326, allocations: 2.156 kB / 0.76 GB, free: 161.6 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.004552/0.9372, allocations: 1.557 MB / 0.7616 GB, free: 161.5 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.008193/0.9454, allocations: 9.202 MB / 0.7706 GB, free: 156.4 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.007354/0.9527, allocations: 6.306 MB / 0.7767 GB, free: 150.9 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/0.9527, allocations: 0 / 0.7767 GB, free: 150.9 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.003396/0.9561, allocations: 2.75 MB / 0.7794 GB, free: 148.5 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003843/0.96, allocations: 0.9702 MB / 0.7803 GB, free: 147.8 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.078/1.038, allocations: 52.71 MB / 0.8318 GB, free: 94.06 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005022/1.043, allocations: 5.517 MB / 0.8372 GB, free: 88.49 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.00352/1.047, allocations: 1.866 MB / 0.839 GB, free: 86.62 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003149/1.05, allocations: 3.24 MB / 0.8422 GB, free: 83.38 MB / 0.4949 GB Notification: Performance of SimCode: time 1.813e-06/1.05, allocations: 0 / 0.8422 GB, free: 83.38 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2944/1.344, allocations: 123.8 MB / 0.9631 GB, free: 167.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/13.06, allocations: 7.5 kB / 0.9631 GB, free: 167.9 MB / 0.5105 GB " [Timeout remaining time 647] (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: 17.045903520658612] Failed to read output from testmodel.py, exit status != 0: 13.201329887844622 13.211666931 13.101161764 Calling exit ...