Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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.001256/0.001256, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001391/0.001391, allocations: 210.5 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 230.5 MB / 258.2 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 71.88 kB / 378.6 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3024, allocations: 53.4 MB / 432 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01268/0.3151, allocations: 9.805 MB / 441.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007525/0.3226, allocations: 3.805 MB / 445.6 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001375/0.324, allocations: 59.62 kB / 445.7 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002158/0.3262, allocations: 0.6989 MB / 446.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003145/0.3293, allocations: 0.9323 MB / 447.3 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001447/0.3308, allocations: 479.1 kB / 447.8 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003863/0.3346, allocations: 2.669 MB / 450.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002287/0.3369, allocations: 1.113 MB / 451.6 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0022/0.3391, allocations: 1.242 MB / 452.8 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002425/0.3415, allocations: 1.545 MB / 454.3 MB, free: 228 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006055/0.3422, allocations: 308 kB / 454.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001331/0.3435, allocations: 0.6244 MB / 455.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.3446, allocations: 1.032 MB / 456.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001721/0.3463, allocations: 1.493 MB / 457.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005753/0.3521, allocations: 4.328 MB / 462.1 MB, free: 8.418 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.3521, allocations: 0 / 462.1 MB, free: 8.418 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3521, allocations: 4 kB / 462.1 MB, free: 8.414 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001605/0.3522, allocations: 0 / 462.1 MB, free: 8.414 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.009227/0.3615, allocations: 3.185 MB / 465.3 MB, free: 5.176 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.3615, allocations: 8.031 kB / 465.3 MB, free: 5.168 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001111/0.3616, allocations: 77.94 kB / 465.4 MB, free: 5.086 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006028/0.3622, allocations: 367.8 kB / 465.8 MB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0012/0.3634, allocations: 382.8 kB / 466.1 MB, free: 4.336 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003125/0.3666, allocations: 1.666 MB / 467.8 MB, free: 2.633 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/0.3667, allocations: 168.1 kB / 468 MB, free: 2.465 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003365/0.367, allocations: 223.9 kB / 468.2 MB, free: 2.246 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004773/0.3718, allocations: 2.764 MB / 470.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.333e-05/0.3719, allocations: 11.95 kB / 471 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002039/0.3721, allocations: 87.98 kB / 471 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001262/0.3722, allocations: 100.1 kB / 471.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00428/0.3765, allocations: 2.339 MB / 473.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01431/0.3908, allocations: 8.195 MB / 481.7 MB, free: 4.422 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003033/0.3938, allocations: 1.39 MB / 483.1 MB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002165/0.396, allocations: 1.1 MB / 484.2 MB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002324/0.3962, allocations: 53.28 kB / 484.2 MB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.662e-05/0.3963, allocations: 59.73 kB / 484.3 MB, free: 1.805 MB / 382.1 MB Notification: Performance of pre-optimization done (n=142): time 4.889e-06/0.3963, allocations: 0 / 484.3 MB, free: 1.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.03742/0.4337, allocations: 13.85 MB / 498.1 MB, free: 3.883 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.325e-05/0.4338, allocations: 73.41 kB / 498.2 MB, free: 3.797 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003416/0.4372, allocations: 2.177 MB / 0.4886 GB, free: 1.574 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002766/0.4375, allocations: 65.7 kB / 0.4887 GB, free: 1.504 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001006/0.4385, allocations: 1.143 MB / 0.4898 GB, free: 360 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000747/0.4392, allocations: 0.7631 MB / 0.4906 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006287/0.4398, allocations: 355.5 kB / 0.4909 GB, free: 15.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.44, allocations: 301.1 kB / 0.4912 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002211/0.4422, allocations: 1.187 MB / 0.4924 GB, free: 13.74 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002374/0.4446, allocations: 1.471 MB / 0.4938 GB, free: 12.17 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004748/0.4493, allocations: 2.804 MB / 0.4965 GB, free: 9.281 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.849e-06/0.4493, allocations: 7.984 kB / 0.4965 GB, free: 9.273 MB / 414.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007849/0.4572, allocations: 4.028 MB / 0.5005 GB, free: 5.223 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.4572, allocations: 8.25 kB / 0.5005 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.4572, allocations: 12 kB / 0.5005 GB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002765/0.46, allocations: 1.087 MB / 0.5016 GB, free: 4.105 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001872/0.4618, allocations: 411.4 kB / 0.5019 GB, free: 3.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01795/0.4798, allocations: 14.59 MB / 0.5162 GB, free: 4.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/0.4817, allocations: 139.8 kB / 0.5163 GB, free: 4.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002211/0.4819, allocations: 80.03 kB / 0.5164 GB, free: 4.441 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (190): * Single equations (assignments): 182 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,6,100.0%), (1,6,100.0%), (2,13,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001462/0.4834, allocations: 0.814 MB / 0.5172 GB, free: 3.617 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005263/0.4839, allocations: 242.5 kB / 0.5174 GB, free: 3.379 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007302/0.4912, allocations: 3.86 MB / 0.5212 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-05/0.4913, allocations: 23.94 kB / 0.5212 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.906e-05/0.4913, allocations: 15.98 kB / 0.5212 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-05/0.4913, allocations: 7.969 kB / 0.5212 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01358/0.5049, allocations: 7.207 MB / 0.5283 GB, free: 8.133 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.5049, allocations: 0 / 0.5283 GB, free: 8.133 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001772/0.5067, allocations: 355.5 kB / 0.5286 GB, free: 7.785 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002636/0.5093, allocations: 0.9573 MB / 0.5296 GB, free: 6.809 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002554/0.5095, allocations: 59.95 kB / 0.5296 GB, free: 6.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2022/0.7117, allocations: 13.63 MB / 0.5429 GB, free: 96.11 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.7117, allocations: 3.219 kB / 0.5429 GB, free: 96.11 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009557/0.7213, allocations: 5.618 MB / 0.5484 GB, free: 94.01 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001527/0.7228, allocations: 0.4885 MB / 0.5489 GB, free: 93.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004542/0.7233, allocations: 41.03 kB / 0.5489 GB, free: 93.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/0.7246, allocations: 137.3 kB / 0.5491 GB, free: 93.83 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004396/0.725, allocations: 174.4 kB / 0.5492 GB, free: 93.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001533/0.7252, allocations: 77.25 kB / 0.5493 GB, free: 93.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00192/0.7271, allocations: 1.537 MB / 0.5508 GB, free: 93.24 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7271, allocations: 0 / 0.5508 GB, free: 93.24 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002069/0.7292, allocations: 0.6941 MB / 0.5515 GB, free: 93.16 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (162): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * 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): 5 systems {(1,6,100.0%), (1,6,100.0%), (2,13,100.0%), (2,12,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009472/0.7387, allocations: 6.663 MB / 0.558 GB, free: 89.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005286/0.7439, allocations: 3.705 MB / 0.5616 GB, free: 86.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.7439, allocations: 3.094 kB / 0.5616 GB, free: 86.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003152/0.7471, allocations: 2.375 MB / 0.5639 GB, free: 84.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002116/0.7492, allocations: 493.5 kB / 0.5644 GB, free: 83.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03287/0.7821, allocations: 25.55 MB / 0.5893 GB, free: 57.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001245/0.7833, allocations: 2.094 MB / 0.5914 GB, free: 55.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001328/0.7847, allocations: 0.4908 MB / 0.5919 GB, free: 55.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/0.7858, allocations: 1.105 MB / 0.593 GB, free: 54.11 MB / 446.1 MB Notification: Performance of SimCode: time 1.322e-06/0.7858, allocations: 0 / 0.593 GB, free: 54.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1524/0.9382, allocations: 64.48 MB / 0.6559 GB, free: 5.902 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.17/25.1, allocations: 8.062 kB / 0.6559 GB, free: 5.895 MB / 462.1 MB " [Timeout remaining time 635] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 651] Reference file matches [Calling sys.exit(0), Time elapsed: 46.11557012901176]