Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008951/0.0008952, allocations: 93.94 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 180.7 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.349/1.349, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005051/0.0005057, allocations: 8 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1034, allocations: 47.57 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02074/0.1242, allocations: 18.87 MB / 347.3 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01567/0.14, allocations: 6.794 MB / 354.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00458/0.1446, allocations: 127.4 kB / 354.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0053/0.1499, allocations: 1.263 MB / 355.5 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008892/0.1589, allocations: 2.045 MB / 357.5 MB, free: 6.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004193/0.1631, allocations: 0.9357 MB / 358.5 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01155/0.1747, allocations: 5.775 MB / 364.2 MB, free: 96 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008669/0.1834, allocations: 4.857 MB / 369.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004721/0.1881, allocations: 2.725 MB / 371.8 MB, free: 8.445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005998/0.1942, allocations: 3.296 MB / 375.1 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002004/0.1962, allocations: 460 kB / 375.6 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003443/0.1996, allocations: 0.6676 MB / 376.2 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003436/0.2031, allocations: 1.85 MB / 378.1 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003897/0.207, allocations: 1.568 MB / 379.6 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1813/0.3883, allocations: 11.68 MB / 391.3 MB, free: 18.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3884, allocations: 0 / 391.3 MB, free: 18.71 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.3884, allocations: 0.6562 kB / 391.3 MB, free: 18.71 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005467/0.3889, allocations: 0 / 391.3 MB, free: 18.71 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02442/0.4134, allocations: 7.53 MB / 398.8 MB, free: 14.69 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.4134, allocations: 8.406 kB / 398.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004162/0.4176, allocations: 0.9258 MB / 399.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008387/0.426, allocations: 1.308 MB / 401.1 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01267/0.4387, allocations: 4.883 MB / 406 MB, free: 12.28 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004652/0.4392, allocations: 0.5003 MB / 406.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002621/0.4419, allocations: 0.6618 MB / 407.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02148/0.4634, allocations: 9.358 MB / 416.5 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002007/0.4636, allocations: 13.53 kB / 416.5 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001137/0.4647, allocations: 277 kB / 416.8 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002583/0.465, allocations: 300.5 kB / 417.1 MB, free: 9.996 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01785/0.4829, allocations: 8.049 MB / 425.1 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05921/0.5421, allocations: 29.52 MB / 454.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01267/0.5548, allocations: 11.97 MB / 466.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01479/0.5697, allocations: 6.883 MB / 473.5 MB, free: 4.523 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.07e-05/0.5698, allocations: 69.05 kB / 473.6 MB, free: 4.445 MB / 366.1 MB Notification: Performance of pre-optimization done (n=316): time 6.132e-06/0.5698, allocations: 4 kB / 473.6 MB, free: 4.441 MB / 366.1 MB Notification: Performance of matching and sorting (n=335): time 0.0354/0.6052, allocations: 16.45 MB / 490 MB, free: 3.504 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.6053, allocations: 86.05 kB / 490.1 MB, free: 3.406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006683/0.612, allocations: 3.926 MB / 494 MB, free: 15.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007488/0.6128, allocations: 85.7 kB / 494.1 MB, free: 15.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002438/0.6152, allocations: 3.078 MB / 497.2 MB, free: 12.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001707/0.617, allocations: 1.128 MB / 498.3 MB, free: 11.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002399/0.6172, allocations: 80 kB / 498.4 MB, free: 11.08 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002734/0.6175, allocations: 462.2 kB / 498.8 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003081/0.6206, allocations: 1.913 MB / 0.489 GB, free: 8.707 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003649/0.6242, allocations: 2.862 MB / 0.4918 GB, free: 5.465 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003394/0.6276, allocations: 2.35 MB / 0.4941 GB, free: 3.129 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.646e-05/0.6277, allocations: 8 kB / 0.4941 GB, free: 3.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=495) (initialization): time 0.01092/0.6386, allocations: 6.516 MB / 0.5005 GB, free: 12.69 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.076e-05/0.6387, allocations: 20 kB / 0.5005 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.536e-05/0.6387, allocations: 31.95 kB / 0.5005 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002889/0.6416, allocations: 1.273 MB / 0.5018 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003109/0.6447, allocations: 0.8321 MB / 0.5026 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01963/0.6644, allocations: 21.19 MB / 0.5233 GB, free: 3.996 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0043/0.6687, allocations: 208 kB / 0.5235 GB, free: 3.793 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003938/0.6691, allocations: 156 kB / 0.5236 GB, free: 3.641 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * Number of states: 0 () * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (432): * Single equations (assignments): 418 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 1,(2,100.0%) 14,(1,100.0%) 8,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005083/0.6742, allocations: 2.183 MB / 0.5258 GB, free: 1.496 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/0.6753, allocations: 450.5 kB / 0.5262 GB, free: 1.051 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2342/0.9095, allocations: 6.211 MB / 0.5323 GB, free: 141 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.651e-05/0.9095, allocations: 33.78 kB / 0.5323 GB, free: 141 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.001e-05/0.9096, allocations: 13.16 kB / 0.5323 GB, free: 141 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.747e-05/0.9096, allocations: 19.11 kB / 0.5323 GB, free: 141 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01947/0.9291, allocations: 12.57 MB / 0.5446 GB, free: 135.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/0.9291, allocations: 7.344 kB / 0.5446 GB, free: 135.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001847/0.931, allocations: 475.8 kB / 0.5451 GB, free: 135.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003247/0.9342, allocations: 1.62 MB / 0.5466 GB, free: 135.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000217/0.9345, allocations: 82.53 kB / 0.5467 GB, free: 135.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02064/0.9551, allocations: 30.77 MB / 0.5768 GB, free: 107.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.9551, allocations: 4 kB / 0.5768 GB, free: 107.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0113/0.9664, allocations: 9.212 MB / 0.5858 GB, free: 98.17 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002725/0.9692, allocations: 0.9212 MB / 0.5867 GB, free: 97.45 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006576/0.9699, allocations: 79.88 kB / 0.5867 GB, free: 97.38 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001887/0.9718, allocations: 203.8 kB / 0.5869 GB, free: 97.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006111/0.9724, allocations: 278.1 kB / 0.5872 GB, free: 96.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002045/0.9726, allocations: 87.98 kB / 0.5873 GB, free: 96.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003763/0.9764, allocations: 2.658 MB / 0.5899 GB, free: 94.15 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.9764, allocations: 0 / 0.5899 GB, free: 94.15 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005258/0.9816, allocations: 1.343 MB / 0.5912 GB, free: 92.81 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.inertiaRotor.w,aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.inertiaRotor.w,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (242): * Single equations (assignments): 225 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01193/0.9936, allocations: 10.57 MB / 0.6015 GB, free: 82.19 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007701/1.001, allocations: 6.452 MB / 0.6078 GB, free: 75.53 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/1.001, allocations: 5.812 kB / 0.6078 GB, free: 75.52 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005366/1.007, allocations: 4.865 MB / 0.6126 GB, free: 70.44 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005609/1.012, allocations: 1.24 MB / 0.6138 GB, free: 69.21 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1051/1.117, allocations: 61.86 MB / 0.6742 GB, free: 4.609 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004466/1.122, allocations: 4.616 MB / 0.6787 GB, free: 15.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004197/1.126, allocations: 1.067 MB / 0.6797 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004268/1.13, allocations: 2.675 MB / 0.6823 GB, free: 12.2 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/1.131, allocations: 0 / 0.6823 GB, free: 12.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3579/1.488, allocations: 117.2 MB / 0.7968 GB, free: 64.93 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/1.489, allocations: 226.9 kB / 0.797 GB, free: 64.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.372/5.861, allocations: 0 / 0.797 GB, free: 64.68 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat