Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 108.6 kB / 21.22 MB, free: 0.7422 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001764/0.001764, allocations: 187.7 kB / 24.5 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 43.94 kB / 371.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2484, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.01552/0.2639, allocations: 12.99 MB / 436.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009201/0.2731, allocations: 4.29 MB / 440.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002392/0.2755, allocations: 95.44 kB / 440.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002867/0.2784, allocations: 1.021 MB / 441.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003809/0.2822, allocations: 1.355 MB / 443.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002042/0.2842, allocations: 0.8511 MB / 444 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005753/0.29, allocations: 4.034 MB / 448.1 MB, free: 5.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003297/0.2933, allocations: 1.777 MB / 449.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003062/0.2963, allocations: 1.939 MB / 451.8 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003876/0.3002, allocations: 2.148 MB / 453.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001193/0.3014, allocations: 0.5117 MB / 454.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002172/0.3036, allocations: 0.7146 MB / 455.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001765/0.3053, allocations: 1.145 MB / 456.3 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003722/0.309, allocations: 2.128 MB / 458.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008031/0.3171, allocations: 6.779 MB / 465.2 MB, free: 4.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.3171, allocations: 0 / 465.2 MB, free: 4.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3171, allocations: 4 kB / 465.2 MB, free: 4.586 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001515/0.3172, allocations: 0 / 465.2 MB, free: 4.586 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01129/0.3285, allocations: 4.408 MB / 469.6 MB, free: 120 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.3286, allocations: 11.97 kB / 469.6 MB, free: 108 kB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.098e-05/0.3287, allocations: 82.45 kB / 469.7 MB, free: 24 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006399/0.3293, allocations: 447.1 kB / 470.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004094/0.3334, allocations: 0.8261 MB / 471 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004895/0.3383, allocations: 2.428 MB / 473.4 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/0.3385, allocations: 242.4 kB / 473.6 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006912/0.3392, allocations: 308 kB / 473.9 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00778/0.347, allocations: 4.254 MB / 478.2 MB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.16e-05/0.3471, allocations: 11.94 kB / 478.2 MB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002945/0.3474, allocations: 128 kB / 478.3 MB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001538/0.3475, allocations: 146.2 kB / 478.5 MB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006416/0.3539, allocations: 3.655 MB / 482.1 MB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02156/0.3755, allocations: 13.1 MB / 495.2 MB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005078/0.3806, allocations: 2.595 MB / 497.8 MB, free: 3.555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002304/0.3829, allocations: 1.296 MB / 499.1 MB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006182/0.3891, allocations: 3.391 MB / 0.4907 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.81e-05/0.3891, allocations: 47.56 kB / 0.4908 GB, free: 14.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=124): time 3.266e-06/0.3891, allocations: 4 kB / 0.4908 GB, free: 14.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01359/0.4027, allocations: 6.071 MB / 0.4967 GB, free: 8.668 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.4028, allocations: 72.72 kB / 0.4968 GB, free: 8.586 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002856/0.4056, allocations: 1.863 MB / 0.4986 GB, free: 6.723 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001235/0.4057, allocations: 49.7 kB / 0.4986 GB, free: 6.668 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001218/0.407, allocations: 1.455 MB / 0.5001 GB, free: 5.199 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004798/0.4074, allocations: 0.5151 MB / 0.5006 GB, free: 4.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004978/0.4079, allocations: 303.5 kB / 0.5009 GB, free: 4.379 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4081, allocations: 305.1 kB / 0.5012 GB, free: 4.078 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/0.4093, allocations: 0.7613 MB / 0.5019 GB, free: 3.316 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001643/0.411, allocations: 1.228 MB / 0.5031 GB, free: 1.895 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003011/0.414, allocations: 2.1 MB / 0.5051 GB, free: 15.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.414, allocations: 4 kB / 0.5051 GB, free: 15.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004761/0.4188, allocations: 2.66 MB / 0.5077 GB, free: 12.92 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/0.4188, allocations: 11.28 kB / 0.5078 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/0.4188, allocations: 16 kB / 0.5078 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001385/0.4202, allocations: 0.5023 MB / 0.5083 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001499/0.4217, allocations: 387.4 kB / 0.5086 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009162/0.4309, allocations: 6.721 MB / 0.5152 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.4323, allocations: 88 kB / 0.5153 GB, free: 4.977 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/0.4324, allocations: 67.98 kB / 0.5153 GB, free: 4.91 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * 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,1,100.0%), (8,30,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001789/0.4342, allocations: 1.048 MB / 0.5164 GB, free: 3.852 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003887/0.4346, allocations: 198.7 kB / 0.5166 GB, free: 3.656 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004491/0.4391, allocations: 2.341 MB / 0.5188 GB, free: 1.281 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.4391, allocations: 15.94 kB / 0.5189 GB, free: 1.266 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.4391, allocations: 8 kB / 0.5189 GB, free: 1.258 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/0.4392, allocations: 7.969 kB / 0.5189 GB, free: 1.25 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009201/0.4484, allocations: 5.342 MB / 0.5241 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.8e-06/0.4484, allocations: 0 / 0.5241 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009868/0.4493, allocations: 219.9 kB / 0.5243 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0013/0.4506, allocations: 0.4959 MB / 0.5248 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.915e-05/0.4507, allocations: 35.94 kB / 0.5248 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1905/0.6413, allocations: 10.89 MB / 0.5355 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.6413, allocations: 6.562 kB / 0.5355 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005689/0.647, allocations: 3.404 MB / 0.5388 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000958/0.6479, allocations: 397 kB / 0.5392 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002461/0.6482, allocations: 32.56 kB / 0.5392 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008938/0.649, allocations: 73.52 kB / 0.5393 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002963/0.6493, allocations: 120 kB / 0.5394 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.959e-05/0.6494, allocations: 44.7 kB / 0.5394 GB, free: 103.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001617/0.6511, allocations: 1.289 MB / 0.5407 GB, free: 103.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6511, allocations: 0 / 0.5407 GB, free: 103.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001675/0.6527, allocations: 0.5825 MB / 0.5413 GB, free: 103.1 MB / 446.1 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.stator.stray.Phi.re,aimc.stator.stray.Phi.im,loadInertia.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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004475/0.6572, allocations: 4.011 MB / 0.5452 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003339/0.6605, allocations: 2.317 MB / 0.5474 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.6605, allocations: 3.938 kB / 0.5474 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001943/0.6625, allocations: 1.659 MB / 0.5491 GB, free: 99.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002019/0.6645, allocations: 0.521 MB / 0.5496 GB, free: 98.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0244/0.6889, allocations: 21.35 MB / 0.5704 GB, free: 80.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001399/0.6903, allocations: 2.374 MB / 0.5727 GB, free: 77.85 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00104/0.6913, allocations: 412.8 kB / 0.5731 GB, free: 77.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/0.6924, allocations: 1.148 MB / 0.5742 GB, free: 76.29 MB / 446.1 MB Notification: Performance of SimCode: time 1.312e-06/0.6924, allocations: 0 / 0.5742 GB, free: 76.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08661/0.779, allocations: 57.04 MB / 0.63 GB, free: 19.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/15.67, allocations: 3.938 kB / 0.63 GB, free: 19.73 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 23.705047055962496]