Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.00132/0.00132, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] 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.001427/0.001427, allocations: 202.2 kB / 24.52 MB, free: 4.156 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.482/1.482, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1936/0.1936, allocations: 38.52 MB / 353.2 MB, free: 12.58 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems 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.001968/0.001968, allocations: 71.14 kB / 493.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.3376, allocations: 62.46 MB / 0.5428 GB, free: 484 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.008193/0.3458, allocations: 5.413 MB / 0.548 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008613/0.3544, allocations: 4.033 MB / 0.552 GB, free: 9.055 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000807/0.3553, allocations: 23.25 kB / 0.552 GB, free: 9.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01126/0.3665, allocations: 5.425 MB / 0.5573 GB, free: 5.664 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009655/0.3675, allocations: 334.4 kB / 0.5576 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005458/0.368, allocations: 223.5 kB / 0.5578 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002301/0.3703, allocations: 1.637 MB / 0.5594 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007752/0.3711, allocations: 0.53 MB / 0.56 GB, free: 2.934 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005259/0.3716, allocations: 382.7 kB / 0.5603 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006493/0.3723, allocations: 438.3 kB / 0.5607 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.262e-05/0.3724, allocations: 56 kB / 0.5608 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001705/0.3725, allocations: 68 kB / 0.5609 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002818/0.3728, allocations: 267.3 kB / 0.5611 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003367/0.3731, allocations: 322.5 kB / 0.5614 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000981/0.3741, allocations: 0.8094 MB / 0.5622 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.3741, allocations: 4 kB / 0.5622 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3741, allocations: 0 / 0.5622 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.3742, allocations: 0 / 0.5622 GB, free: 0.6133 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001707/0.3759, allocations: 0.8104 MB / 0.563 GB, free: 15.77 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.3759, allocations: 15.98 kB / 0.563 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.405e-05/0.3759, allocations: 13.19 kB / 0.563 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001165/0.376, allocations: 86.7 kB / 0.5631 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000337/0.3764, allocations: 80.5 kB / 0.5632 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.3775, allocations: 0.4912 MB / 0.5637 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.525e-05/0.3775, allocations: 36.98 kB / 0.5637 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-05/0.3776, allocations: 44 kB / 0.5637 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.3786, allocations: 0.6336 MB / 0.5644 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.636e-05/0.3787, allocations: 7.938 kB / 0.5644 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.177e-05/0.3787, allocations: 16 kB / 0.5644 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001309/0.3789, allocations: 48.97 kB / 0.5644 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007953/0.3797, allocations: 463.6 kB / 0.5649 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003386/0.383, allocations: 2.431 MB / 0.5673 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005016/0.3835, allocations: 261.2 kB / 0.5675 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.3838, allocations: 138.2 kB / 0.5676 GB, free: 10.8 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.3838, allocations: 4 kB / 0.5676 GB, free: 10.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.3838, allocations: 34.5 kB / 0.5677 GB, free: 10.76 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 1.833e-06/0.3838, allocations: 0 / 0.5677 GB, free: 10.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002986/0.3868, allocations: 1.255 MB / 0.5689 GB, free: 9.461 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.3869, allocations: 81.05 kB / 0.569 GB, free: 9.363 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005083/0.3874, allocations: 422 kB / 0.5694 GB, free: 8.941 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.3874, allocations: 33.7 kB / 0.5694 GB, free: 8.902 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/0.3877, allocations: 304.2 kB / 0.5697 GB, free: 8.602 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.3878, allocations: 115 kB / 0.5698 GB, free: 8.488 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.3879, allocations: 82.09 kB / 0.5699 GB, free: 8.402 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.3881, allocations: 358.7 kB / 0.5702 GB, free: 8.043 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002211/0.3883, allocations: 132.8 kB / 0.5704 GB, free: 7.914 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003527/0.3887, allocations: 270.3 kB / 0.5706 GB, free: 7.582 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006353/0.3893, allocations: 457.9 kB / 0.571 GB, free: 7.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.3893, allocations: 4 kB / 0.5711 GB, free: 7.066 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001131/0.3905, allocations: 0.5994 MB / 0.5716 GB, free: 6.457 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.3905, allocations: 7.938 kB / 0.5716 GB, free: 6.449 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.3905, allocations: 8 kB / 0.5717 GB, free: 6.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004632/0.391, allocations: 145.5 kB / 0.5718 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003158/0.3913, allocations: 71.89 kB / 0.5719 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003684/0.395, allocations: 3.473 MB / 0.5753 GB, free: 2.516 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002864/0.3952, allocations: 16 kB / 0.5753 GB, free: 2.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/0.3953, allocations: 23.92 kB / 0.5753 GB, free: 2.477 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * 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 {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003238/0.3956, allocations: 229.7 kB / 0.5755 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.174e-05/0.3957, allocations: 51.61 kB / 0.5756 GB, free: 2.191 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001025/0.3967, allocations: 0.5 MB / 0.576 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3967, allocations: 4 kB / 0.5761 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00076/0.3975, allocations: 405.2 kB / 0.5764 GB, free: 1.262 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.3975, allocations: 3.984 kB / 0.5764 GB, free: 1.258 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001537/0.399, allocations: 0.9661 MB / 0.5774 GB, free: 236 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.399, allocations: 4 kB / 0.5774 GB, free: 232 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000209/0.3992, allocations: 35.97 kB / 0.5774 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002855/0.3995, allocations: 96.77 kB / 0.5775 GB, free: 96 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.3995, allocations: 7.938 kB / 0.5775 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002221/0.4018, allocations: 1.92 MB / 0.5794 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4018, allocations: 0 / 0.5794 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.4028, allocations: 0.6433 MB / 0.58 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001687/0.403, allocations: 71.56 kB / 0.5801 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.43e-05/0.403, allocations: 11.98 kB / 0.5801 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001983/0.4032, allocations: 8 kB / 0.5801 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.946e-05/0.4033, allocations: 31.95 kB / 0.5801 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-05/0.4033, allocations: 8 kB / 0.5802 GB, free: 13.25 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004096/0.4037, allocations: 303.1 kB / 0.5804 GB, free: 12.95 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4037, allocations: 0 / 0.5804 GB, free: 12.95 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006208/0.4043, allocations: 120 kB / 0.5806 GB, free: 12.84 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001353/0.4057, allocations: 1.189 MB / 0.5817 GB, free: 11.6 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.4068, allocations: 0.5951 MB / 0.5823 GB, free: 10.98 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.4068, allocations: 0 / 0.5823 GB, free: 10.98 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000497/0.4073, allocations: 303.5 kB / 0.5826 GB, free: 10.67 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000756/0.4081, allocations: 104.7 kB / 0.5827 GB, free: 10.57 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00723/0.4153, allocations: 4.626 MB / 0.5872 GB, free: 5.711 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007556/0.416, allocations: 0.9204 MB / 0.5881 GB, free: 4.762 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002917/0.4163, allocations: 76.33 kB / 0.5882 GB, free: 4.688 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002972/0.4166, allocations: 183.4 kB / 0.5883 GB, free: 4.508 MB / 430.1 MB Notification: Performance of SimCode: time 1.924e-06/0.4166, allocations: 0 / 0.5883 GB, free: 4.508 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05584/0.4725, allocations: 10.9 MB / 0.599 GB, free: 9.781 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.1, allocations: 10.14 kB / 0.599 GB, free: 9.777 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.997253871988505] Failed to read output from testmodel.py, exit status != 0: 13.27025663497625 13.285933921 12.908499928 Calling exit ...