Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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.001678/0.001678, allocations: 108.8 kB / 19.17 MB, free: 3.871 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.001926/0.001926, allocations: 207.2 kB / 22.12 MB, free: 0.9297 MB / 14.72 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 1.403/1.403, allocations: 207.6 MB / 232.5 MB, free: 11.5 MB / 190.1 MB " [Timeout remaining time 178] 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_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.001928/0.001928, allocations: 47.94 kB / 343 MB, free: 12.35 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2798, allocations: 49.13 MB / 392.1 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01957/0.2993, allocations: 16.84 MB / 409 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01366/0.313, allocations: 5.729 MB / 414.7 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004798/0.3178, allocations: 125.7 kB / 414.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005294/0.3231, allocations: 1.393 MB / 416.2 MB, free: 7.637 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007476/0.3306, allocations: 1.785 MB / 418 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003784/0.3344, allocations: 1.074 MB / 419.1 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009778/0.3441, allocations: 6.323 MB / 425.4 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005797/0.3499, allocations: 3.695 MB / 429.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006192/0.3561, allocations: 3.014 MB / 432.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006159/0.3623, allocations: 3.382 MB / 435.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002043/0.3643, allocations: 0.7891 MB / 436.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003342/0.3677, allocations: 1.07 MB / 437.4 MB, free: 6.941 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002224/0.3699, allocations: 1.878 MB / 439.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00598/0.3759, allocations: 3.345 MB / 442.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01407/0.3899, allocations: 10.54 MB / 453.1 MB, free: 7.125 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.3899, allocations: 0 / 453.1 MB, free: 7.125 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.075e-06/0.3899, allocations: 0 / 453.1 MB, free: 7.125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003094/0.3903, allocations: 0 / 453.1 MB, free: 7.125 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.02058/0.4108, allocations: 6.66 MB / 459.8 MB, free: 384 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.4109, allocations: 12.03 kB / 459.8 MB, free: 372 kB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001426/0.411, allocations: 129.9 kB / 459.9 MB, free: 240 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001464/0.4125, allocations: 0.675 MB / 460.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005207/0.4177, allocations: 1.083 MB / 461.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006789/0.4245, allocations: 3.433 MB / 465.1 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003599/0.4248, allocations: 365.7 kB / 465.5 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001199/0.426, allocations: 483.9 kB / 465.9 MB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01401/0.4401, allocations: 6.865 MB / 472.8 MB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.852e-05/0.4402, allocations: 15.89 kB / 472.8 MB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005212/0.4407, allocations: 196 kB / 473 MB, free: 2.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000253/0.4409, allocations: 241.8 kB / 473.2 MB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01203/0.4529, allocations: 5.922 MB / 479.2 MB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03798/0.4909, allocations: 20.74 MB / 499.9 MB, free: 7.629 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01086/0.5018, allocations: 9.737 MB / 0.4977 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00433/0.5061, allocations: 2.302 MB / 0.4999 GB, free: 10.56 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01256/0.5187, allocations: 6.499 MB / 0.5063 GB, free: 3.945 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.708e-05/0.5187, allocations: 56.56 kB / 0.5063 GB, free: 3.883 MB / 430.1 MB Notification: Performance of pre-optimization done (n=219): time 4.588e-06/0.5187, allocations: 0 / 0.5063 GB, free: 3.883 MB / 430.1 MB Notification: Performance of matching and sorting (n=226): time 0.01935/0.5381, allocations: 9.73 MB / 0.5158 GB, free: 9.949 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.894e-05/0.5382, allocations: 73.41 kB / 0.5159 GB, free: 9.863 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005059/0.5432, allocations: 2.988 MB / 0.5188 GB, free: 6.859 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003233/0.5436, allocations: 69.7 kB / 0.5189 GB, free: 6.785 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001892/0.5454, allocations: 2.209 MB / 0.5211 GB, free: 4.559 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009936/0.5464, allocations: 0.7979 MB / 0.5218 GB, free: 3.754 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008257/0.5473, allocations: 469.2 kB / 0.5223 GB, free: 3.289 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.5474, allocations: 305.1 kB / 0.5226 GB, free: 2.988 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002215/0.5496, allocations: 1.289 MB / 0.5238 GB, free: 1.695 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002712/0.5523, allocations: 1.928 MB / 0.5257 GB, free: 15.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004989/0.5573, allocations: 3.34 MB / 0.529 GB, free: 11.91 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/0.5573, allocations: 4 kB / 0.529 GB, free: 11.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007776/0.5651, allocations: 4.25 MB / 0.5331 GB, free: 7.613 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/0.5652, allocations: 12 kB / 0.5331 GB, free: 7.602 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.344e-05/0.5652, allocations: 16 kB / 0.5332 GB, free: 7.586 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002665/0.5679, allocations: 0.7676 MB / 0.5339 GB, free: 6.805 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002273/0.5701, allocations: 0.5695 MB / 0.5345 GB, free: 6.234 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0127/0.5828, allocations: 10.91 MB / 0.5451 GB, free: 10.76 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002584/0.5854, allocations: 107.9 kB / 0.5452 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002429/0.5857, allocations: 99.98 kB / 0.5453 GB, free: 10.56 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[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 (278): * Single equations (assignments): 273 * 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 {(3,25,77.8%), (1,8,100.0%), (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.003167/0.5888, allocations: 1.606 MB / 0.5469 GB, free: 8.941 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007321/0.5896, allocations: 333.9 kB / 0.5472 GB, free: 8.613 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007055/0.5966, allocations: 3.886 MB / 0.551 GB, free: 4.66 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.005e-05/0.5966, allocations: 20 kB / 0.551 GB, free: 4.641 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.881e-05/0.5966, allocations: 12 kB / 0.551 GB, free: 4.629 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-05/0.5967, allocations: 7.969 kB / 0.551 GB, free: 4.621 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1976/0.7943, allocations: 8.541 MB / 0.5594 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.7943, allocations: 2.125 kB / 0.5594 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001538/0.7958, allocations: 345.7 kB / 0.5597 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003059/0.7989, allocations: 0.9352 MB / 0.5606 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002256/0.7991, allocations: 60.67 kB / 0.5607 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01392/0.813, allocations: 15.69 MB / 0.576 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.813, allocations: 6.891 kB / 0.576 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009289/0.8223, allocations: 5.681 MB / 0.5816 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001917/0.8242, allocations: 0.7045 MB / 0.5822 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005291/0.8247, allocations: 53.5 kB / 0.5823 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.8262, allocations: 109.2 kB / 0.5824 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005217/0.8267, allocations: 189.9 kB / 0.5826 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000149/0.8269, allocations: 63.8 kB / 0.5826 GB, free: 127.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003142/0.83, allocations: 2.061 MB / 0.5847 GB, free: 126.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.83, allocations: 2.406 kB / 0.5847 GB, free: 126.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003808/0.8338, allocations: 0.9379 MB / 0.5856 GB, free: 126.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * 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,8,100.0%), (2,26,100.0%), (1,1,100.0%), (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.007865/0.8417, allocations: 6.414 MB / 0.5918 GB, free: 123.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00521/0.8469, allocations: 3.774 MB / 0.5955 GB, free: 121.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.8469, allocations: 0 / 0.5955 GB, free: 121.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003301/0.8502, allocations: 2.546 MB / 0.598 GB, free: 119.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003855/0.854, allocations: 0.9169 MB / 0.5989 GB, free: 118.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04449/0.8985, allocations: 33.8 MB / 0.6319 GB, free: 84.49 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002448/0.901, allocations: 3.433 MB / 0.6353 GB, free: 81.02 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002256/0.9032, allocations: 0.7604 MB / 0.636 GB, free: 80.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002064/0.9053, allocations: 1.827 MB / 0.6378 GB, free: 78.43 MB / 478.1 MB Notification: Performance of SimCode: time 1.253e-06/0.9053, allocations: 0 / 0.6378 GB, free: 78.43 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1297/1.035, allocations: 85.99 MB / 0.7218 GB, free: 8.297 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.72/17.76, allocations: 9.875 kB / 0.7218 GB, free: 8.289 MB / 494.1 MB " [Timeout remaining time 642] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.35544314800063] 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', 'transformer.l2sigma.inductor[1].i', 'transformer.l2sigma.inductor[3].i'] 17.944332631013822 17.959076537 17.565882303 Calling exit ...