Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.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.001377/0.001377, allocations: 107.6 kB / 21.18 MB, free: 460 kB / 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.001496/0.001496, allocations: 218.7 kB / 24.48 MB, free: 3.805 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.485/1.485, allocations: 207.7 MB / 235.3 MB, free: 9.824 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",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.002075/0.002075, allocations: 59.91 kB / 347.2 MB, free: 9.859 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3223, allocations: 49.15 MB / 396.4 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics): time 0.02848/0.3508, allocations: 23.25 MB / 419.6 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0208/0.3716, allocations: 7.719 MB / 427.4 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007793/0.3794, allocations: 201.9 kB / 427.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02325/0.4026, allocations: 8.759 MB / 436.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01341/0.4161, allocations: 3.409 MB / 439.7 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006595/0.4226, allocations: 1.836 MB / 441.6 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01962/0.4423, allocations: 12.41 MB / 454 MB, free: 9.355 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03232/0.4746, allocations: 15.87 MB / 469.8 MB, free: 9.289 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01358/0.4882, allocations: 6.722 MB / 476.6 MB, free: 2.551 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01363/0.5018, allocations: 7.043 MB / 483.6 MB, free: 11.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005083/0.5069, allocations: 1.848 MB / 485.5 MB, free: 9.633 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007169/0.5141, allocations: 2.195 MB / 487.6 MB, free: 7.441 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006181/0.5202, allocations: 3.675 MB / 491.3 MB, free: 3.758 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01192/0.5322, allocations: 5.421 MB / 496.7 MB, free: 14.32 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03588/0.568, allocations: 24.9 MB / 0.5094 GB, free: 5.336 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.568, allocations: 0 / 0.5094 GB, free: 5.336 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.568, allocations: 0 / 0.5094 GB, free: 5.336 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0008546/0.5689, allocations: 0 / 0.5094 GB, free: 5.336 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3092 * Number of variables: 3092 Notification: Performance of Generate backend data structure: time 0.05288/0.6218, allocations: 14.82 MB / 0.5239 GB, free: 6.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.6218, allocations: 11.98 kB / 0.5239 GB, free: 6.398 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006615/0.6285, allocations: 1.821 MB / 0.5257 GB, free: 4.566 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05388/0.6823, allocations: 9.524 MB / 0.535 GB, free: 11.02 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0212/0.7035, allocations: 7.025 MB / 0.5418 GB, free: 3.91 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001156/0.7047, allocations: 0.8149 MB / 0.5426 GB, free: 3.094 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006543/0.7112, allocations: 1.07 MB / 0.5437 GB, free: 2.023 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4754/1.187, allocations: 18.97 MB / 0.5622 GB, free: 122.6 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006632/1.187, allocations: 14.69 kB / 0.5622 GB, free: 122.6 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004625/1.192, allocations: 461.9 kB / 0.5627 GB, free: 122.6 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001028/1.193, allocations: 0.7035 MB / 0.5633 GB, free: 122.6 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04792/1.241, allocations: 18.11 MB / 0.581 GB, free: 116.4 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1003/1.341, allocations: 53.01 MB / 0.6328 GB, free: 76.23 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0248/1.366, allocations: 14.58 MB / 0.647 GB, free: 64.41 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00687/1.373, allocations: 3.886 MB / 0.6508 GB, free: 60.51 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02411/1.397, allocations: 11.18 MB / 0.6618 GB, free: 49.57 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.072e-05/1.397, allocations: 73.58 kB / 0.6618 GB, free: 49.49 MB / 478.1 MB Notification: Performance of pre-optimization done (n=385): time 7.504e-06/1.397, allocations: 0 / 0.6618 GB, free: 49.49 MB / 478.1 MB Notification: Performance of matching and sorting (n=391): time 0.04167/1.439, allocations: 19.07 MB / 0.6804 GB, free: 30.84 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/1.439, allocations: 90.47 kB / 0.6805 GB, free: 30.73 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00618/1.445, allocations: 4.439 MB / 0.6849 GB, free: 26.36 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008707/1.446, allocations: 97.7 kB / 0.685 GB, free: 26.26 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002656/1.448, allocations: 5.005 MB / 0.6898 GB, free: 21.25 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00194/1.45, allocations: 1.41 MB / 0.6912 GB, free: 19.82 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002097/1.453, allocations: 1.283 MB / 0.6925 GB, free: 18.53 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.095e-05/1.453, allocations: 301.1 kB / 0.6928 GB, free: 18.23 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004435/1.457, allocations: 3.104 MB / 0.6958 GB, free: 15.12 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006042/1.463, allocations: 5.749 MB / 0.7014 GB, free: 8.145 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01256/1.476, allocations: 9.427 MB / 0.7106 GB, free: 13.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001283/1.476, allocations: 27.94 kB / 0.7106 GB, free: 13.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.02436/1.5, allocations: 10.2 MB / 0.7206 GB, free: 3.227 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/1.5, allocations: 40.62 kB / 0.7206 GB, free: 3.188 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002327/1.5, allocations: 88 kB / 0.7207 GB, free: 3.102 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003976/1.504, allocations: 1.378 MB / 0.7221 GB, free: 1.715 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006669/1.511, allocations: 1.462 MB / 0.7235 GB, free: 256 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01974/1.531, allocations: 10.94 MB / 0.7342 GB, free: 5.176 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006426/1.537, allocations: 399.5 kB / 0.7346 GB, free: 4.785 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001699/1.539, allocations: 335.9 kB / 0.7349 GB, free: 4.457 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 396 * 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 (752): * Single equations (assignments): 750 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,41.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009973/1.549, allocations: 4.177 MB / 0.739 GB, free: 272 kB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001405/1.55, allocations: 469.2 kB / 0.7394 GB, free: 15.8 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0144/1.565, allocations: 7.266 MB / 0.7465 GB, free: 8.496 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0114/1.576, allocations: 5.957 MB / 0.7523 GB, free: 2.516 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-05/1.576, allocations: 12 kB / 0.7523 GB, free: 2.504 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.275e-05/1.576, allocations: 19.92 kB / 0.7524 GB, free: 2.484 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03444/1.611, allocations: 15.52 MB / 0.7675 GB, free: 2.859 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.738e-05/1.611, allocations: 4 kB / 0.7675 GB, free: 2.855 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003549/1.614, allocations: 0.7293 MB / 0.7682 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003547/1.618, allocations: 1.229 MB / 0.7694 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007526/1.618, allocations: 83.98 kB / 0.7695 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.241/1.859, allocations: 9.699 MB / 0.779 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/1.859, allocations: 2.375 kB / 0.779 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01894/1.878, allocations: 10.47 MB / 0.7892 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003672/1.882, allocations: 0.9961 MB / 0.7902 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001192/1.883, allocations: 72.31 kB / 0.7902 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002725/1.886, allocations: 255.8 kB / 0.7905 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008633/1.887, allocations: 285.7 kB / 0.7908 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000361/1.887, allocations: 114.1 kB / 0.7909 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004539/1.892, allocations: 2.856 MB / 0.7937 GB, free: 166.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/1.892, allocations: 0 / 0.7937 GB, free: 166.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006885/1.899, allocations: 1.828 MB / 0.7954 GB, free: 166.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (imsQS.rotor.strayReluctance.port_p.reference.gamma,speed.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 (360): * Single equations (assignments): 358 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01574/1.914, allocations: 11.17 MB / 0.8064 GB, free: 161.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01553/1.93, allocations: 7.543 MB / 0.8137 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/1.93, allocations: 0 / 0.8137 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00766/1.938, allocations: 3.364 MB / 0.817 GB, free: 156.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007679/1.945, allocations: 1.092 MB / 0.8181 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09644/2.042, allocations: 61.56 MB / 0.8782 GB, free: 94.48 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01054/2.052, allocations: 6.604 MB / 0.8846 GB, free: 87.81 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006761/2.059, allocations: 2.248 MB / 0.8868 GB, free: 85.56 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007052/2.066, allocations: 3.881 MB / 0.8906 GB, free: 81.68 MB / 0.5294 GB Notification: Performance of SimCode: time 1.953e-06/2.066, allocations: 0 / 0.8906 GB, free: 81.68 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.004/4.07, allocations: 143.2 MB / 1.03 GB, free: 135.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.67/23.74, allocations: 3.828 kB / 1.03 GB, free: 135.3 MB / 0.5294 GB " [Timeout remaining time 636] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMS_Characteristics/IMS_Characteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 29.973972991574556]