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.001412/0.001412, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001917/0.001917, allocations: 207.7 kB / 23.73 MB, free: 4.387 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.465/1.465, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.1902/0.1902, allocations: 38.55 MB / 352.5 MB, free: 12.28 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="me",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.002267/0.002267, allocations: 66.39 kB / 492.5 MB, free: 4.664 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3669, allocations: 62.47 MB / 0.5419 GB, free: 224 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.007994/0.3749, allocations: 5.06 MB / 0.5469 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008641/0.3835, allocations: 3.642 MB / 0.5504 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008272/0.3843, allocations: 23.28 kB / 0.5505 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01253/0.3969, allocations: 5.317 MB / 0.5557 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001376/0.3982, allocations: 334.5 kB / 0.556 GB, free: 5.848 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007387/0.399, allocations: 219.6 kB / 0.5562 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002491/0.4015, allocations: 1.633 MB / 0.5578 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007972/0.4023, allocations: 0.5222 MB / 0.5583 GB, free: 3.461 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005118/0.4028, allocations: 382.7 kB / 0.5587 GB, free: 3.086 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006268/0.4034, allocations: 418.3 kB / 0.5591 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.72e-05/0.4035, allocations: 56 kB / 0.5591 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001855/0.4037, allocations: 71.98 kB / 0.5592 GB, free: 2.551 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002777/0.404, allocations: 251.3 kB / 0.5594 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003568/0.4043, allocations: 258.9 kB / 0.5597 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001081/0.4054, allocations: 0.825 MB / 0.5605 GB, free: 1.223 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.4054, allocations: 0 / 0.5605 GB, free: 1.223 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4054, allocations: 0 / 0.5605 GB, free: 1.223 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.4054, allocations: 4 kB / 0.5605 GB, free: 1.219 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.001763/0.4072, allocations: 0.8065 MB / 0.5613 GB, free: 392 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.4072, allocations: 15.98 kB / 0.5613 GB, free: 376 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001253/0.4074, allocations: 86.7 kB / 0.5614 GB, free: 280 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002953/0.4077, allocations: 72.52 kB / 0.5614 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.4088, allocations: 0.4991 MB / 0.5619 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.747e-05/0.4089, allocations: 32.98 kB / 0.5619 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.409, allocations: 48 kB / 0.562 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.4101, allocations: 0.6258 MB / 0.5626 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/0.4101, allocations: 7.938 kB / 0.5626 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.758e-05/0.4102, allocations: 23.97 kB / 0.5626 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001358/0.4103, allocations: 52.95 kB / 0.5627 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008083/0.4111, allocations: 463.6 kB / 0.5631 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003411/0.4145, allocations: 2.306 MB / 0.5654 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/0.415, allocations: 269.2 kB / 0.5656 GB, free: 11.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000234/0.4152, allocations: 125.7 kB / 0.5658 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.4153, allocations: 4 kB / 0.5658 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.919e-05/0.4153, allocations: 42.5 kB / 0.5658 GB, free: 11.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 3.076e-06/0.4153, allocations: 0 / 0.5658 GB, free: 11.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.003156/0.4185, allocations: 1.247 MB / 0.567 GB, free: 10.21 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.357e-05/0.4186, allocations: 85.05 kB / 0.5671 GB, free: 10.11 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005415/0.4191, allocations: 421.7 kB / 0.5675 GB, free: 9.684 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.427e-05/0.4191, allocations: 33.7 kB / 0.5675 GB, free: 9.645 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000258/0.4194, allocations: 304.2 kB / 0.5678 GB, free: 9.344 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.4195, allocations: 119 kB / 0.5679 GB, free: 9.227 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.4197, allocations: 82.08 kB / 0.568 GB, free: 9.141 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002183/0.4199, allocations: 358.7 kB / 0.5684 GB, free: 8.781 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002386/0.4201, allocations: 136.8 kB / 0.5685 GB, free: 8.648 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003645/0.4205, allocations: 275.8 kB / 0.5687 GB, free: 8.312 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007062/0.4212, allocations: 453.8 kB / 0.5692 GB, free: 7.805 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.4212, allocations: 7.938 kB / 0.5692 GB, free: 7.797 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00121/0.4224, allocations: 0.5963 MB / 0.5698 GB, free: 7.188 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/0.4224, allocations: 8 kB / 0.5698 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.4224, allocations: 7.938 kB / 0.5698 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005356/0.423, allocations: 145.5 kB / 0.5699 GB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003338/0.4233, allocations: 75.91 kB / 0.57 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004326/0.4276, allocations: 3.454 MB / 0.5734 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.4279, allocations: 16 kB / 0.5734 GB, free: 3.246 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.125e-05/0.428, allocations: 23.98 kB / 0.5734 GB, free: 3.223 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.0003709/0.4283, allocations: 229.7 kB / 0.5736 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.831e-05/0.4284, allocations: 51.66 kB / 0.5737 GB, free: 2.938 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001038/0.4295, allocations: 0.4922 MB / 0.5742 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.4295, allocations: 4 kB / 0.5742 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0008032/0.4303, allocations: 409.2 kB / 0.5746 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.4303, allocations: 3.984 kB / 0.5746 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001763/0.432, allocations: 0.9311 MB / 0.5755 GB, free: 1.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.432, allocations: 4 kB / 0.5755 GB, free: 1.012 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002089/0.4323, allocations: 35.97 kB / 0.5755 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002872/0.4325, allocations: 88.78 kB / 0.5756 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.4326, allocations: 8.094 kB / 0.5756 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002331/0.4349, allocations: 1.908 MB / 0.5775 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.84e-06/0.4349, allocations: 8.094 kB / 0.5775 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.436, allocations: 0.6436 MB / 0.5781 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001946/0.4362, allocations: 63.69 kB / 0.5782 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.353e-05/0.4363, allocations: 11.98 kB / 0.5782 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.4365, allocations: 8 kB / 0.5782 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.156e-05/0.4365, allocations: 27.89 kB / 0.5782 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.586e-05/0.4365, allocations: 8 kB / 0.5782 GB, free: 14.06 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004103/0.437, allocations: 303.1 kB / 0.5785 GB, free: 13.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.437, allocations: 64 / 0.5785 GB, free: 13.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006017/0.4376, allocations: 127.9 kB / 0.5786 GB, free: 13.64 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.001422/0.439, allocations: 1.185 MB / 0.5798 GB, free: 12.41 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.4401, allocations: 0.6033 MB / 0.5804 GB, free: 11.78 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.4401, allocations: 0 / 0.5804 GB, free: 11.78 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004825/0.4406, allocations: 291.3 kB / 0.5806 GB, free: 11.48 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006576/0.4413, allocations: 123.3 kB / 0.5808 GB, free: 11.38 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006791/0.4481, allocations: 4.618 MB / 0.5853 GB, free: 6.516 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.4485, allocations: 331.7 kB / 0.5856 GB, free: 6.164 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002485/0.4487, allocations: 72.33 kB / 0.5857 GB, free: 6.094 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002572/0.449, allocations: 179.4 kB / 0.5858 GB, free: 5.918 MB / 430.1 MB Notification: Performance of SimCode: time 7.71e-07/0.449, allocations: 0 / 0.5858 GB, free: 5.918 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04782/0.4968, allocations: 11.4 MB / 0.597 GB, free: 10.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.35, allocations: 4.062 kB / 0.597 GB, free: 10.73 MB / 446.1 MB " [Timeout remaining time 648] (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.1799153117463] Failed to read output from testmodel.py, exit status != 0: 12.473573355004191 12.492024903999999 12.083052884 Calling exit ...