Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001656/0.001656, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002569/0.002569, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.47/1.47, allocations: 230.6 MB / 258.3 MB, free: 8.074 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 67.89 kB / 378.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.291, allocations: 53.37 MB / 431.9 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01065/0.3016, allocations: 8.304 MB / 440.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005261/0.3069, allocations: 2.766 MB / 443 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.3079, allocations: 27.88 kB / 443 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00159/0.3095, allocations: 0.5832 MB / 443.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001344/0.3109, allocations: 0.5002 MB / 444.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006132/0.3115, allocations: 275.6 kB / 444.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001861/0.3133, allocations: 1.506 MB / 445.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006962/0.314, allocations: 399.3 kB / 446.3 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009155/0.3149, allocations: 0.5875 MB / 446.9 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007806/0.3157, allocations: 0.6144 MB / 447.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001804/0.3159, allocations: 147.9 kB / 447.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003612/0.3163, allocations: 188 kB / 447.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002295/0.3165, allocations: 283 kB / 448.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006478/0.3171, allocations: 0.6726 MB / 448.8 MB, free: 6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002024/0.3192, allocations: 1.771 MB / 450.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3192, allocations: 0 / 450.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3192, allocations: 0 / 450.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.902e-05/0.3192, allocations: 0 / 450.5 MB, free: 4.227 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002543/0.3217, allocations: 1.438 MB / 452 MB, free: 2.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.3218, allocations: 15.97 kB / 452 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001935/0.322, allocations: 152.3 kB / 452.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007408/0.3227, allocations: 208 kB / 452.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.324, allocations: 0.6968 MB / 453 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.162e-05/0.3241, allocations: 74 kB / 453.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.3242, allocations: 103.9 kB / 453.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.326, allocations: 0.9464 MB / 454.1 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.441e-05/0.326, allocations: 7.938 kB / 454.2 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-05/0.3261, allocations: 40 kB / 454.2 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.313e-05/0.3261, allocations: 24 kB / 454.2 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.3275, allocations: 0.652 MB / 454.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005505/0.333, allocations: 3.801 MB / 458.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007283/0.3337, allocations: 355.4 kB / 459 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006173/0.3343, allocations: 268.6 kB / 459.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.086e-05/0.3344, allocations: 4 kB / 459.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.3344, allocations: 38.56 kB / 459.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.003e-06/0.3344, allocations: 0 / 459.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003067/0.3375, allocations: 1.338 MB / 460.7 MB, free: 9.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/0.3375, allocations: 85.11 kB / 460.7 MB, free: 9.621 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001337/0.3389, allocations: 0.8488 MB / 461.6 MB, free: 8.762 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/0.3389, allocations: 33.7 kB / 461.6 MB, free: 8.723 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005243/0.3394, allocations: 0.5775 MB / 462.2 MB, free: 8.137 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.3396, allocations: 170.6 kB / 462.4 MB, free: 7.969 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.3398, allocations: 134.6 kB / 462.5 MB, free: 7.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.34, allocations: 333.9 kB / 462.8 MB, free: 7.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000374/0.3404, allocations: 173.9 kB / 463 MB, free: 7.328 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006885/0.3411, allocations: 479.6 kB / 463.5 MB, free: 6.727 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.3421, allocations: 0.6721 MB / 464.1 MB, free: 5.922 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.3422, allocations: 4 kB / 464.1 MB, free: 5.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001449/0.3436, allocations: 0.7872 MB / 464.9 MB, free: 5.117 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.3436, allocations: 8 kB / 464.9 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.3436, allocations: 8.281 kB / 464.9 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002871/0.3439, allocations: 89.62 kB / 465 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005099/0.3444, allocations: 159.7 kB / 465.2 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002766/0.3472, allocations: 2.935 MB / 468.1 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005525/0.3478, allocations: 39.94 kB / 468.2 MB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.691e-05/0.3478, allocations: 36 kB / 468.2 MB, free: 1.613 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004482/0.3482, allocations: 265.5 kB / 468.5 MB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.3484, allocations: 91.44 kB / 468.5 MB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001003/0.3494, allocations: 0.4955 MB / 469 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.3494, allocations: 7.938 kB / 469 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3494, allocations: 4 kB / 469.1 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.3494, allocations: 7.984 kB / 469.1 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002309/0.3517, allocations: 1.446 MB / 470.5 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.3517, allocations: 4 kB / 470.5 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003227/0.352, allocations: 71.89 kB / 470.6 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000219/0.3523, allocations: 77.83 kB / 470.7 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.657e-05/0.3523, allocations: 12 kB / 470.7 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002508/0.3548, allocations: 2.916 MB / 473.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3548, allocations: 0 / 473.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.3562, allocations: 0.806 MB / 474.4 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002901/0.3565, allocations: 127.4 kB / 474.5 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.551e-05/0.3566, allocations: 15.92 kB / 474.5 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000428/0.357, allocations: 35.92 kB / 474.6 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.968e-05/0.3571, allocations: 35.69 kB / 474.6 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/0.3571, allocations: 16 kB / 474.6 MB, free: 10.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008306/0.3579, allocations: 0.5732 MB / 475.2 MB, free: 10.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3579, allocations: 0 / 475.2 MB, free: 10.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008652/0.3588, allocations: 208 kB / 475.4 MB, free: 10.04 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * 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,5,100.0%), (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.001798/0.3606, allocations: 1.381 MB / 476.8 MB, free: 8.598 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001325/0.3619, allocations: 0.6823 MB / 477.5 MB, free: 7.891 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3619, allocations: 0 / 477.5 MB, free: 7.891 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006951/0.3626, allocations: 449.5 kB / 477.9 MB, free: 7.426 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009985/0.3636, allocations: 239.9 kB / 478.1 MB, free: 7.203 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/0.3748, allocations: 7.475 MB / 485.6 MB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000718/0.3755, allocations: 1.016 MB / 486.6 MB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004347/0.376, allocations: 111.2 kB / 486.7 MB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004917/0.3765, allocations: 391.3 kB / 487.1 MB, free: 13.75 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3765, allocations: 0 / 487.1 MB, free: 13.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06567/0.4421, allocations: 20.05 MB / 0.4953 GB, free: 9.953 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.25, allocations: 7.094 kB / 0.4953 GB, free: 9.949 MB / 414.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.840877939015627] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcse.la.i', 'loadInertia.phi', 'loadInertia.w'] 12.347785836085677 12.369704644 12.046249789 Calling exit ...