Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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.0008072/0.0008072, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003817/0.003817, allocations: 165.8 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8284/0.8284, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.482e-06/1.482e-06, allocations: 0 / 298.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.731e-05/1.879e-05, allocations: 2.281 kB / 298.5 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.1301/0.1301, allocations: 11.98 MB / 310.4 MB, free: 9.176 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00768/0.1378, allocations: 4.301 MB / 314.7 MB, free: 6.164 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002305/0.1401, allocations: 89.81 kB / 314.8 MB, free: 6.129 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002825/0.1429, allocations: 1.041 MB / 315.9 MB, free: 5.59 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004171/0.1471, allocations: 1.409 MB / 317.3 MB, free: 4.668 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001861/0.1489, allocations: 0.9149 MB / 318.2 MB, free: 4.098 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005003/0.1539, allocations: 4.949 MB / 323.1 MB, free: 1.449 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002535/0.1565, allocations: 1.936 MB / 325.1 MB, free: 456 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004948/0.1614, allocations: 3.277 MB / 328.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003927/0.1653, allocations: 2.138 MB / 330.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001335/0.1667, allocations: 0.5862 MB / 331.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001905/0.1686, allocations: 0.7765 MB / 331.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009627/0.1695, allocations: 1.374 MB / 333.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002968/0.1725, allocations: 1.678 MB / 334.9 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006453/0.179, allocations: 7.861 MB / 342.8 MB, free: 2.422 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.179, allocations: 0 / 342.8 MB, free: 2.422 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.179, allocations: 0 / 342.8 MB, free: 2.422 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001764/0.1791, allocations: 0 / 342.8 MB, free: 2.422 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.008564/0.1877, allocations: 5.038 MB / 347.8 MB, free: 13.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.1878, allocations: 15.98 kB / 347.8 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005715/0.1883, allocations: 0.4945 MB / 348.3 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002281/0.1906, allocations: 0.8921 MB / 349.2 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004315/0.1949, allocations: 2.592 MB / 351.8 MB, free: 9.273 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/0.1951, allocations: 275.6 kB / 352.1 MB, free: 9.004 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004847/0.1956, allocations: 352.3 kB / 352.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007139/0.2027, allocations: 5.187 MB / 357.6 MB, free: 3.383 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.69e-05/0.2028, allocations: 11.94 kB / 357.6 MB, free: 3.371 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002454/0.203, allocations: 152 kB / 357.8 MB, free: 3.223 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001143/0.2031, allocations: 163.2 kB / 357.9 MB, free: 3.062 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005793/0.2089, allocations: 4.368 MB / 362.3 MB, free: 14.69 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01706/0.226, allocations: 14.15 MB / 376.4 MB, free: 208 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003607/0.2296, allocations: 3.219 MB / 379.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001649/0.2313, allocations: 1.569 MB / 381.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00531/0.2366, allocations: 3.998 MB / 385.2 MB, free: 7.566 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.2366, allocations: 59.8 kB / 385.3 MB, free: 7.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=161): time 3.707e-06/0.2366, allocations: 0 / 385.3 MB, free: 7.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=164): time 0.01107/0.2477, allocations: 7.455 MB / 392.7 MB, free: 15.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.2477, allocations: 76.72 kB / 392.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002434/0.2502, allocations: 2.19 MB / 395 MB, free: 13.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001501/0.2503, allocations: 53.7 kB / 395 MB, free: 13.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009181/0.2512, allocations: 1.655 MB / 396.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003335/0.2516, allocations: 0.5771 MB / 397.3 MB, free: 11.37 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003842/0.2519, allocations: 355.4 kB / 397.6 MB, free: 11.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.06e-05/0.252, allocations: 309.1 kB / 397.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.253, allocations: 0.9408 MB / 398.9 MB, free: 9.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/0.2543, allocations: 1.478 MB / 400.3 MB, free: 8.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002253/0.2565, allocations: 2.514 MB / 402.9 MB, free: 5.348 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-05/0.2565, allocations: 4 kB / 402.9 MB, free: 5.344 MB / 362.7 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.003914/0.2604, allocations: 3.261 MB / 406.1 MB, free: 2.055 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.331e-05/0.2605, allocations: 12 kB / 406.1 MB, free: 2.043 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.295e-05/0.2605, allocations: 16 kB / 406.2 MB, free: 2.027 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.2617, allocations: 0.7319 MB / 406.9 MB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007785/0.2624, allocations: 379.4 kB / 407.3 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007815/0.2703, allocations: 10.8 MB / 418.1 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/0.2715, allocations: 83.95 kB / 418.1 MB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/0.2716, allocations: 79.98 kB / 418.2 MB, free: 5.492 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (9,19,33.3%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001605/0.2732, allocations: 1.228 MB / 419.4 MB, free: 4.254 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003381/0.2735, allocations: 242.4 kB / 419.7 MB, free: 4.016 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003548/0.2771, allocations: 2.966 MB / 422.6 MB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.2771, allocations: 20 kB / 422.7 MB, free: 1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.611e-05/0.2771, allocations: 19.92 kB / 422.7 MB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.2771, allocations: 11.91 kB / 422.7 MB, free: 0.9688 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007416/0.2845, allocations: 6.019 MB / 428.7 MB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.2845, allocations: 4 kB / 428.7 MB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004829/0.285, allocations: 179.7 kB / 428.9 MB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/0.2864, allocations: 0.9031 MB / 429.8 MB, free: 9.754 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.462e-05/0.2865, allocations: 39.98 kB / 429.8 MB, free: 9.715 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01106/0.2975, allocations: 15.39 MB / 445.2 MB, free: 9.637 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2975, allocations: 4.031 kB / 445.2 MB, free: 9.633 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004877/0.3024, allocations: 4.329 MB / 449.6 MB, free: 5.246 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009292/0.3033, allocations: 474.3 kB / 450 MB, free: 4.781 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001884/0.3035, allocations: 36 kB / 450.1 MB, free: 4.746 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000556/0.3041, allocations: 79.94 kB / 450.1 MB, free: 4.668 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000335/0.3044, allocations: 172.9 kB / 450.3 MB, free: 4.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.405e-05/0.3045, allocations: 44 kB / 450.4 MB, free: 4.457 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001567/0.306, allocations: 1.485 MB / 451.8 MB, free: 2.953 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.306, allocations: 0 / 451.8 MB, free: 2.953 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001774/0.3078, allocations: 0.7031 MB / 452.5 MB, free: 2.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,8,100.0%), (9,19,33.3%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004854/0.3127, allocations: 4.958 MB / 457.5 MB, free: 13.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003255/0.3159, allocations: 2.948 MB / 460.4 MB, free: 10.22 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.778e-06/0.3159, allocations: 4.5 kB / 460.5 MB, free: 10.22 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002435/0.3184, allocations: 2.203 MB / 462.7 MB, free: 7.934 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/0.3203, allocations: 0.6345 MB / 463.3 MB, free: 7.297 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1506/0.4709, allocations: 24.75 MB / 488 MB, free: 130.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001738/0.4727, allocations: 2.13 MB / 490.2 MB, free: 129.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001187/0.4738, allocations: 485.5 kB / 490.6 MB, free: 129.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009477/0.4748, allocations: 1.323 MB / 492 MB, free: 128.6 MB / 426.7 MB Notification: Performance of SimCode: time 2.144e-06/0.4748, allocations: 3.938 kB / 492 MB, free: 128.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07432/0.5491, allocations: 67.94 MB / 0.5468 GB, free: 67.13 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.87/9.419, allocations: 3.984 kB / 0.5468 GB, free: 67.12 MB / 426.7 MB " [Timeout remaining time 650] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.189776110462844] Failed to read output from testmodel.py, exit status != 0: ['time', 'aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re', 'aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im', 'aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re', 'aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im', '// aimc.stator.zeroInductor.i0', 'aimc.is[1]', 'aimc.is[2]', 'loadInertia.phi', 'loadInertia.w'] 9.5363356359303 9.545203043 9.363845315 Calling exit ...