Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.00174/0.00174, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002294/0.002294, allocations: 208 kB / 23.74 MB, free: 4.66 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.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1785/0.1785, allocations: 38.52 MB / 352.5 MB, free: 12.55 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.00205/0.00205, allocations: 71.89 kB / 492.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3204, allocations: 62.46 MB / 0.542 GB, free: 448 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007717/0.3281, allocations: 5.371 MB / 0.5472 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003752/0.3319, allocations: 2.163 MB / 0.5494 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003162/0.3322, allocations: 18.19 kB / 0.5494 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005696/0.3328, allocations: 162.6 kB / 0.5495 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000989/0.3338, allocations: 399.8 kB / 0.5499 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005797/0.3343, allocations: 226.3 kB / 0.5501 GB, free: 9.914 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00104/0.3354, allocations: 0.7061 MB / 0.5508 GB, free: 9.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004737/0.3359, allocations: 338.3 kB / 0.5511 GB, free: 9.266 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005126/0.3364, allocations: 315 kB / 0.5514 GB, free: 9.086 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004834/0.3369, allocations: 309.5 kB / 0.5517 GB, free: 8.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.123e-05/0.3369, allocations: 51.53 kB / 0.5518 GB, free: 8.883 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000293/0.3372, allocations: 144.7 kB / 0.5519 GB, free: 8.836 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.3374, allocations: 152.5 kB / 0.5521 GB, free: 8.723 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002871/0.3377, allocations: 270 kB / 0.5523 GB, free: 8.539 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009078/0.3386, allocations: 0.7039 MB / 0.553 GB, free: 8.043 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3386, allocations: 0 / 0.553 GB, free: 8.043 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3386, allocations: 0 / 0.553 GB, free: 8.043 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.886e-06/0.3386, allocations: 5.344 kB / 0.553 GB, free: 8.039 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001672/0.3403, allocations: 0.8041 MB / 0.5538 GB, free: 7.398 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.3403, allocations: 12.77 kB / 0.5538 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001176/0.3404, allocations: 75.44 kB / 0.5539 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.3406, allocations: 61 kB / 0.5539 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008495/0.3414, allocations: 431.1 kB / 0.5544 GB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.3414, allocations: 28.41 kB / 0.5544 GB, free: 6.934 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.734e-05/0.3415, allocations: 40.64 kB / 0.5544 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007547/0.3423, allocations: 465.8 kB / 0.5549 GB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.3423, allocations: 1.156 kB / 0.5549 GB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.152e-05/0.3423, allocations: 16.28 kB / 0.5549 GB, free: 6.566 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.3423, allocations: 8.844 kB / 0.5549 GB, free: 6.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004992/0.3428, allocations: 281 kB / 0.5552 GB, free: 6.426 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002473/0.3453, allocations: 1.791 MB / 0.5569 GB, free: 4.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005386/0.3459, allocations: 240.1 kB / 0.5571 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/0.346, allocations: 79.14 kB / 0.5572 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.346, allocations: 15.64 kB / 0.5572 GB, free: 4.613 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002959/0.3463, allocations: 167.4 kB / 0.5574 GB, free: 4.473 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.3463, allocations: 7.938 kB / 0.5574 GB, free: 4.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001847/0.3482, allocations: 0.8461 MB / 0.5582 GB, free: 3.582 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.3483, allocations: 136.5 kB / 0.5584 GB, free: 3.418 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005336/0.3488, allocations: 414.1 kB / 0.5587 GB, free: 3.004 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.185e-05/0.3489, allocations: 37.7 kB / 0.5588 GB, free: 2.961 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002252/0.3491, allocations: 276.1 kB / 0.559 GB, free: 2.688 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.1e-05/0.3492, allocations: 95.2 kB / 0.5591 GB, free: 2.594 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.3493, allocations: 73.64 kB / 0.5592 GB, free: 2.516 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.3495, allocations: 350.8 kB / 0.5595 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.3497, allocations: 87.89 kB / 0.5596 GB, free: 2.078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002773/0.3499, allocations: 208.2 kB / 0.5598 GB, free: 1.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004596/0.3504, allocations: 319.1 kB / 0.5601 GB, free: 1.449 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3504, allocations: 4 kB / 0.5601 GB, free: 1.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008948/0.3513, allocations: 433.9 kB / 0.5605 GB, free: 1.012 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.3513, allocations: 10.66 kB / 0.5606 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3513, allocations: 4 kB / 0.5606 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004563/0.3518, allocations: 92.77 kB / 0.5606 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002428/0.352, allocations: 63.91 kB / 0.5607 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002645/0.3547, allocations: 1.918 MB / 0.5626 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/0.355, allocations: 24.02 kB / 0.5626 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.355, allocations: 23.88 kB / 0.5626 GB, free: 14.77 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002872/0.3553, allocations: 189.8 kB / 0.5628 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.554e-05/0.3554, allocations: 43.72 kB / 0.5629 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006973/0.3561, allocations: 306 kB / 0.5631 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.3561, allocations: 4 kB / 0.5631 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3561, allocations: 4 kB / 0.5631 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.3561, allocations: 0 / 0.5631 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001223/0.3573, allocations: 0.7448 MB / 0.5639 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.3573, allocations: 4 kB / 0.5639 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002455/0.3576, allocations: 39.92 kB / 0.5639 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002205/0.3578, allocations: 52.81 kB / 0.564 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.3578, allocations: 11.98 kB / 0.564 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00152/0.3593, allocations: 1.44 MB / 0.5654 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.3593, allocations: 8.031 kB / 0.5654 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008421/0.3602, allocations: 0.4996 MB / 0.5659 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.3603, allocations: 59.73 kB / 0.5659 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.272e-05/0.3604, allocations: 4 kB / 0.5659 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002418/0.3606, allocations: 15.98 kB / 0.566 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.777e-05/0.3607, allocations: 23.89 kB / 0.566 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/0.3607, allocations: 15.94 kB / 0.566 GB, free: 11.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003767/0.3611, allocations: 291.1 kB / 0.5663 GB, free: 10.81 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3611, allocations: 0 / 0.5663 GB, free: 10.81 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006105/0.3617, allocations: 123.9 kB / 0.5664 GB, free: 10.69 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002733/0.3645, allocations: 1.369 MB / 0.5677 GB, free: 9.449 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009674/0.3654, allocations: 395 kB / 0.5681 GB, free: 9.051 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3654, allocations: 0 / 0.5681 GB, free: 9.051 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004245/0.3658, allocations: 234.5 kB / 0.5683 GB, free: 8.809 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007439/0.3666, allocations: 135.8 kB / 0.5685 GB, free: 8.684 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006409/0.373, allocations: 4.108 MB / 0.5725 GB, free: 4.363 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005314/0.3735, allocations: 0.8582 MB / 0.5733 GB, free: 3.477 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002611/0.3738, allocations: 67.34 kB / 0.5734 GB, free: 3.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002374/0.374, allocations: 159.4 kB / 0.5735 GB, free: 3.254 MB / 414.1 MB Notification: Performance of SimCode: time 1.142e-06/0.374, allocations: 4 kB / 0.5735 GB, free: 3.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04718/0.4212, allocations: 11.8 MB / 0.5851 GB, free: 7.547 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.53/13.95, allocations: 6.75 kB / 0.5851 GB, free: 7.543 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.9181271799971] Failed to read output from testmodel.py, exit status != 0: 14.131531343999086 14.15029649 13.808550624 Calling exit ...