Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.0019/0.0019, allocations: 107.1 kB / 20.44 MB, free: 1.328 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.002244/0.002244, allocations: 205.3 kB / 23.72 MB, free: 4.508 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.56/1.56, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2027/0.2027, allocations: 38.56 MB / 352.5 MB, free: 12.38 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.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.003253/0.003253, allocations: 67.89 kB / 492.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4049/0.4082, allocations: 62.48 MB / 0.5419 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007755/0.4159, allocations: 5.095 MB / 0.5469 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002978/0.4189, allocations: 1.485 MB / 0.5484 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000337/0.4192, allocations: 23.72 kB / 0.5484 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004325/0.4197, allocations: 121.7 kB / 0.5485 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008964/0.4206, allocations: 315.8 kB / 0.5488 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000432/0.421, allocations: 162.2 kB / 0.549 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.422, allocations: 0.6935 MB / 0.5496 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004796/0.4225, allocations: 336 kB / 0.55 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004456/0.4229, allocations: 295.9 kB / 0.5502 GB, free: 9.922 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004335/0.4234, allocations: 286.3 kB / 0.5505 GB, free: 9.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.779e-05/0.4234, allocations: 45.5 kB / 0.5506 GB, free: 9.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.496e-05/0.4235, allocations: 46.5 kB / 0.5506 GB, free: 9.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001668/0.4237, allocations: 152.7 kB / 0.5508 GB, free: 9.641 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002418/0.4239, allocations: 216.2 kB / 0.551 GB, free: 9.516 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007192/0.4247, allocations: 0.601 MB / 0.5515 GB, free: 9.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.4247, allocations: 1.188 kB / 0.5515 GB, free: 9.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4247, allocations: 7.875 kB / 0.5516 GB, free: 9.082 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.4247, allocations: 0 / 0.5516 GB, free: 9.082 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001467/0.4261, allocations: 0.7181 MB / 0.5523 GB, free: 8.512 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.4262, allocations: 13.36 kB / 0.5523 GB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.4263, allocations: 81.53 kB / 0.5523 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.4264, allocations: 62.83 kB / 0.5524 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007959/0.4272, allocations: 403.9 kB / 0.5528 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.4273, allocations: 87.81 kB / 0.5529 GB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.247e-05/0.4274, allocations: 47.7 kB / 0.5529 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008479/0.4282, allocations: 0.4934 MB / 0.5534 GB, free: 7.637 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.672e-05/0.4283, allocations: 5.953 kB / 0.5534 GB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.151e-05/0.4283, allocations: 16.09 kB / 0.5534 GB, free: 7.621 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.4283, allocations: 10.47 kB / 0.5534 GB, free: 7.621 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000738/0.4291, allocations: 345.7 kB / 0.5538 GB, free: 7.449 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00282/0.4319, allocations: 1.796 MB / 0.5555 GB, free: 5.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005114/0.4324, allocations: 215.7 kB / 0.5557 GB, free: 5.715 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.4326, allocations: 94.28 kB / 0.5558 GB, free: 5.652 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.047e-05/0.4327, allocations: 3.625 kB / 0.5558 GB, free: 5.652 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.03e-05/0.4327, allocations: 32.75 kB / 0.5558 GB, free: 5.613 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.285e-06/0.4327, allocations: 1.094 kB / 0.5558 GB, free: 5.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001892/0.4346, allocations: 0.7867 MB / 0.5566 GB, free: 4.902 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.638e-05/0.4347, allocations: 115 kB / 0.5567 GB, free: 4.766 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004009/0.4351, allocations: 333.6 kB / 0.557 GB, free: 4.426 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.4351, allocations: 33.7 kB / 0.5571 GB, free: 4.387 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002271/0.4353, allocations: 268.2 kB / 0.5573 GB, free: 4.117 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.752e-05/0.4354, allocations: 87.27 kB / 0.5574 GB, free: 4.031 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.4355, allocations: 65.66 kB / 0.5575 GB, free: 3.961 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.4357, allocations: 346.8 kB / 0.5578 GB, free: 3.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/0.4359, allocations: 83.73 kB / 0.5579 GB, free: 3.531 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.4362, allocations: 217 kB / 0.5581 GB, free: 3.258 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/0.4375, allocations: 498.3 kB / 0.5586 GB, free: 2.715 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4375, allocations: 4 kB / 0.5586 GB, free: 2.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009192/0.4385, allocations: 417.6 kB / 0.559 GB, free: 2.293 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.4385, allocations: 4 kB / 0.559 GB, free: 2.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.4385, allocations: 8 kB / 0.559 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003314/0.4388, allocations: 77.27 kB / 0.5591 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002506/0.4391, allocations: 75.78 kB / 0.5591 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/0.4413, allocations: 1.805 MB / 0.5609 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002889/0.4416, allocations: 20.02 kB / 0.5609 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.135e-05/0.4416, allocations: 20.06 kB / 0.5609 GB, free: 180 kB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003179/0.4419, allocations: 193.7 kB / 0.5611 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.592e-05/0.442, allocations: 35.75 kB / 0.5612 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.101e-05/0.4421, allocations: 39.19 kB / 0.5612 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.4421, allocations: 4 kB / 0.5612 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.4421, allocations: 0 / 0.5612 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.4421, allocations: 4 kB / 0.5612 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001356/0.4434, allocations: 0.6777 MB / 0.5619 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.4435, allocations: 4 kB / 0.5619 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000254/0.4437, allocations: 43.95 kB / 0.5619 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.853e-05/0.4438, allocations: 28.84 kB / 0.5619 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.4438, allocations: 7.938 kB / 0.5619 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.4449, allocations: 1.275 MB / 0.5632 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.4449, allocations: 7.969 kB / 0.5632 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008944/0.4458, allocations: 0.4957 MB / 0.5637 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.4459, allocations: 39.84 kB / 0.5637 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.021e-05/0.446, allocations: 8.156 kB / 0.5637 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002007/0.4462, allocations: 11.98 kB / 0.5637 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.056e-05/0.4463, allocations: 23.91 kB / 0.5638 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.4463, allocations: 8 kB / 0.5638 GB, free: 13.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002788/0.4465, allocations: 231.2 kB / 0.564 GB, free: 12.85 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4465, allocations: 0 / 0.564 GB, free: 12.85 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006333/0.4472, allocations: 91.94 kB / 0.5641 GB, free: 12.76 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * Single equations (assignments): 19 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00122/0.4484, allocations: 1.046 MB / 0.5651 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008226/0.4492, allocations: 359.1 kB / 0.5654 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4492, allocations: 320 / 0.5654 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004616/0.4497, allocations: 210.6 kB / 0.5656 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006938/0.4504, allocations: 103.4 kB / 0.5657 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006057/0.4564, allocations: 3.711 MB / 0.5694 GB, free: 7.066 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.4568, allocations: 251.7 kB / 0.5696 GB, free: 6.797 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002113/0.457, allocations: 47.25 kB / 0.5696 GB, free: 6.754 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002049/0.4572, allocations: 147.3 kB / 0.5698 GB, free: 6.609 MB / 414.1 MB Notification: Performance of SimCode: time 1.113e-06/0.4572, allocations: 0 / 0.5698 GB, free: 6.609 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04634/0.5036, allocations: 9.285 MB / 0.5789 GB, free: 13.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.58, allocations: 17.83 kB / 0.5789 GB, free: 13.53 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.60508461901918] Failed to read output from testmodel.py, exit status != 0: 13.714687740895897 13.736319754 13.308200758 Calling exit ...