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.001363/0.001363, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.491/1.491, allocations: 230.6 MB / 252.6 MB, free: 8.324 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.001737/0.001737, allocations: 217.6 kB / 309.2 MB, free: 3.156 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.04377/0.04377, allocations: 8.912 MB / 374.6 MB, free: 1.918 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.002673/0.002673, allocations: 91.86 kB / 0.4892 GB, free: 7.344 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2645, allocations: 55.6 MB / 0.5435 GB, free: 26.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02153/0.286, allocations: 28.95 MB / 0.5718 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01657/0.3026, allocations: 8.585 MB / 0.5802 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005673/0.3083, allocations: 256.3 kB / 0.5804 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02105/0.3293, allocations: 8.276 MB / 0.5885 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0106/0.3399, allocations: 2.926 MB / 0.5914 GB, free: 8.316 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006624/0.3465, allocations: 1.93 MB / 0.5933 GB, free: 6.781 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0148/0.3613, allocations: 10.15 MB / 0.6032 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0284/0.3897, allocations: 14.05 MB / 0.6169 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01057/0.4003, allocations: 5.51 MB / 0.6223 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01141/0.4117, allocations: 6.148 MB / 0.6283 GB, free: 6.086 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004224/0.416, allocations: 1.547 MB / 0.6298 GB, free: 4.539 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006243/0.4222, allocations: 1.917 MB / 0.6316 GB, free: 2.625 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005065/0.4273, allocations: 2.996 MB / 0.6346 GB, free: 15.62 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01163/0.4389, allocations: 5.856 MB / 0.6403 GB, free: 9.742 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02889/0.4678, allocations: 20.7 MB / 0.6605 GB, free: 4.977 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.006e-06/0.4678, allocations: 0 / 0.6605 GB, free: 4.977 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4678, allocations: 0 / 0.6605 GB, free: 4.977 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005358/0.4683, allocations: 0 / 0.6605 GB, free: 4.977 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.0368/0.5051, allocations: 12.01 MB / 0.6722 GB, free: 8.871 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.5052, allocations: 8.031 kB / 0.6722 GB, free: 8.863 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004924/0.5101, allocations: 1.353 MB / 0.6736 GB, free: 7.5 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03279/0.5429, allocations: 5.594 MB / 0.679 GB, free: 1.895 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01663/0.5595, allocations: 6.411 MB / 0.6853 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00081/0.5603, allocations: 0.7025 MB / 0.686 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004421/0.5648, allocations: 0.9218 MB / 0.6869 GB, free: 9.766 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4537/1.018, allocations: 15.1 MB / 0.7016 GB, free: 102.3 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003154/1.019, allocations: 20 kB / 0.7016 GB, free: 102.3 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00153/1.02, allocations: 389.8 kB / 0.702 GB, free: 102 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005222/1.021, allocations: 0.5209 MB / 0.7025 GB, free: 101.9 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02739/1.048, allocations: 13.78 MB / 0.716 GB, free: 96.8 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08049/1.129, allocations: 46.55 MB / 0.7614 GB, free: 66.41 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01263/1.141, allocations: 8.267 MB / 0.7695 GB, free: 61.98 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003776/1.145, allocations: 2.645 MB / 0.7721 GB, free: 59.34 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003891/1.145, allocations: 105.9 kB / 0.7722 GB, free: 59.25 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.647e-05/1.146, allocations: 73.48 kB / 0.7723 GB, free: 59.17 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 6.211e-06/1.146, allocations: 0 / 0.7723 GB, free: 59.17 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.02642/1.172, allocations: 14.66 MB / 0.7866 GB, free: 44.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/1.172, allocations: 94.33 kB / 0.7867 GB, free: 44.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004815/1.177, allocations: 3.765 MB / 0.7903 GB, free: 41.05 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000474/1.177, allocations: 93.64 kB / 0.7904 GB, free: 40.95 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00166/1.179, allocations: 4.224 MB / 0.7946 GB, free: 36.87 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009338/1.18, allocations: 1.374 MB / 0.7959 GB, free: 35.51 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001327/1.181, allocations: 1.18 MB / 0.7971 GB, free: 34.32 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.316e-05/1.181, allocations: 301.1 kB / 0.7973 GB, free: 34.02 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003113/1.184, allocations: 2.584 MB / 0.7999 GB, free: 31.43 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00408/1.188, allocations: 5.065 MB / 0.8048 GB, free: 25.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00762/1.196, allocations: 8.265 MB / 0.8129 GB, free: 15.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.841e-05/1.196, allocations: 24 kB / 0.8129 GB, free: 15.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01186/1.208, allocations: 8.631 MB / 0.8213 GB, free: 7.066 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.682e-05/1.208, allocations: 43.94 kB / 0.8214 GB, free: 7.023 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000104/1.208, allocations: 84 kB / 0.8215 GB, free: 6.941 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002054/1.21, allocations: 0.8707 MB / 0.8223 GB, free: 6.066 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004105/1.214, allocations: 1.369 MB / 0.8236 GB, free: 4.695 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/1.225, allocations: 8.83 MB / 0.8323 GB, free: 11.64 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004165/1.229, allocations: 335.6 kB / 0.8326 GB, free: 11.31 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008808/1.23, allocations: 308 kB / 0.8329 GB, free: 11.01 MB / 0.4982 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.006596/1.237, allocations: 3.509 MB / 0.8363 GB, free: 7.488 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001104/1.238, allocations: 433.2 kB / 0.8367 GB, free: 7.062 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01071/1.249, allocations: 5.838 MB / 0.8424 GB, free: 1.188 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.216e-05/1.249, allocations: 43.94 kB / 0.8425 GB, free: 1.145 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/1.249, allocations: 8 kB / 0.8425 GB, free: 1.137 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.119e-05/1.249, allocations: 19.92 kB / 0.8425 GB, free: 1.117 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02663/1.275, allocations: 14.5 MB / 0.8566 GB, free: 2.594 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/1.275, allocations: 4 kB / 0.8566 GB, free: 2.59 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002822/1.278, allocations: 0.6674 MB / 0.8573 GB, free: 1.922 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002188/1.28, allocations: 0.7364 MB / 0.858 GB, free: 1.18 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003631/1.281, allocations: 83.97 kB / 0.8581 GB, free: 1.098 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01101/1.292, allocations: 7.85 MB / 0.8658 GB, free: 9.027 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/1.292, allocations: 3.938 kB / 0.8658 GB, free: 9.023 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01464/1.306, allocations: 8.512 MB / 0.8741 GB, free: 416 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002526/1.309, allocations: 0.8445 MB / 0.8749 GB, free: 15.56 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007201/1.31, allocations: 80.05 kB / 0.875 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001947/1.312, allocations: 167.8 kB / 0.8751 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005239/1.312, allocations: 266.5 kB / 0.8754 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002445/1.312, allocations: 115.9 kB / 0.8755 GB, free: 14.95 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004344/1.317, allocations: 2.528 MB / 0.878 GB, free: 12.43 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/1.317, allocations: 0 / 0.878 GB, free: 12.43 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005675/1.322, allocations: 1.562 MB / 0.8795 GB, free: 10.87 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.01504/1.337, allocations: 9.232 MB / 0.8885 GB, free: 1.531 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01145/1.349, allocations: 6.309 MB / 0.8947 GB, free: 11.19 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/1.349, allocations: 9.938 kB / 0.8947 GB, free: 11.18 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004936/1.354, allocations: 2.761 MB / 0.8974 GB, free: 8.391 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004698/1.358, allocations: 0.9613 MB / 0.8983 GB, free: 7.453 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2993/1.658, allocations: 52.81 MB / 0.9499 GB, free: 175.8 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007978/1.666, allocations: 5.981 MB / 0.9557 GB, free: 173.5 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004721/1.67, allocations: 1.868 MB / 0.9576 GB, free: 173.3 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00418/1.675, allocations: 3.234 MB / 0.9607 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of SimCode: time 1.012e-06/1.675, allocations: 0 / 0.9607 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.211/1.886, allocations: 127.1 MB / 1.085 GB, free: 54.46 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.63/23.51, allocations: 3.938 kB / 1.085 GB, free: 54.46 MB / 0.5763 GB " [Timeout remaining time 636] (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: 30.480564506025985] Failed to read output from testmodel.py, exit status != 0: 23.693435365799814 23.703885945 23.233361871 Calling exit ...