Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.001304/0.001304, allocations: 125 kB / 17.79 MB, free: 5.121 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.001362/0.001362, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.402/1.402, allocations: 225.6 MB / 249.1 MB, free: 3.656 MB / 190.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 51.91 kB / 365.7 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09462/0.09614, allocations: 52.13 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2374/0.3335, allocations: 39.6 MB / 457.4 MB, free: 7.887 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0208/0.3543, allocations: 10.44 MB / 467.9 MB, free: 6.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008305/0.3626, allocations: 303.4 kB / 468.2 MB, free: 5.957 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01919/0.3818, allocations: 8.623 MB / 476.8 MB, free: 2.219 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01228/0.3941, allocations: 3.498 MB / 480.3 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007603/0.4017, allocations: 2.334 MB / 482.6 MB, free: 14.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01931/0.421, allocations: 12.88 MB / 495.5 MB, free: 6.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03403/0.455, allocations: 19.64 MB / 0.5031 GB, free: 6.383 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01254/0.4676, allocations: 6.822 MB / 0.5097 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01398/0.4815, allocations: 7.798 MB / 0.5173 GB, free: 7.719 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005985/0.4875, allocations: 1.953 MB / 0.5193 GB, free: 5.766 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008112/0.4956, allocations: 2.343 MB / 0.5215 GB, free: 3.422 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006452/0.5021, allocations: 3.974 MB / 0.5254 GB, free: 15.44 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01386/0.5159, allocations: 7.552 MB / 0.5328 GB, free: 7.855 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03457/0.5505, allocations: 25.93 MB / 0.5581 GB, free: 13.84 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.5505, allocations: 4 kB / 0.5581 GB, free: 13.84 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5505, allocations: 3.938 kB / 0.5581 GB, free: 13.84 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006234/0.5511, allocations: 0 / 0.5581 GB, free: 13.84 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04411/0.5952, allocations: 15.28 MB / 0.573 GB, free: 14.42 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.5953, allocations: 11.97 kB / 0.5731 GB, free: 14.41 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006063/0.6014, allocations: 1.715 MB / 0.5747 GB, free: 12.68 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03431/0.6357, allocations: 6.209 MB / 0.5808 GB, free: 6.461 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02006/0.6557, allocations: 8.084 MB / 0.5887 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009998/0.6567, allocations: 0.9032 MB / 0.5896 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004335/0.6611, allocations: 1.191 MB / 0.5907 GB, free: 12.2 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04895/0.71, allocations: 18.65 MB / 0.609 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007345/0.7108, allocations: 27.83 kB / 0.609 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004503/0.7153, allocations: 500 kB / 0.6095 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008082/0.7161, allocations: 0.6421 MB / 0.6101 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03661/0.7527, allocations: 16.77 MB / 0.6265 GB, free: 7.508 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4815/1.234, allocations: 58.28 MB / 0.6834 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01763/1.252, allocations: 32.45 MB / 0.7151 GB, free: 85.95 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004497/1.256, allocations: 3.385 MB / 0.7184 GB, free: 84.2 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01374/1.27, allocations: 8.651 MB / 0.7268 GB, free: 78.49 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/1.27, allocations: 64.25 kB / 0.7269 GB, free: 78.43 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 5.189e-06/1.27, allocations: 0 / 0.7269 GB, free: 78.43 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.02903/1.299, allocations: 17.7 MB / 0.7442 GB, free: 64.48 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/1.299, allocations: 90.47 kB / 0.7442 GB, free: 64.38 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005922/1.305, allocations: 5.028 MB / 0.7492 GB, free: 59.42 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0005674/1.306, allocations: 85.7 kB / 0.7492 GB, free: 59.33 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002245/1.308, allocations: 5.64 MB / 0.7547 GB, free: 54.19 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001146/1.309, allocations: 1.419 MB / 0.7561 GB, free: 52.79 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001587/1.311, allocations: 1.323 MB / 0.7574 GB, free: 51.45 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.656e-05/1.311, allocations: 301.1 kB / 0.7577 GB, free: 51.16 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00348/1.314, allocations: 2.902 MB / 0.7605 GB, free: 48.25 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004468/1.319, allocations: 5.881 MB / 0.7663 GB, free: 40.97 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008564/1.327, allocations: 9.433 MB / 0.7755 GB, free: 30.09 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.881e-05/1.327, allocations: 35.94 kB / 0.7755 GB, free: 30.06 MB / 0.5138 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01392/1.341, allocations: 9.842 MB / 0.7851 GB, free: 20.16 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.852e-05/1.341, allocations: 48.62 kB / 0.7852 GB, free: 20.11 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001065/1.341, allocations: 100 kB / 0.7853 GB, free: 20.01 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002037/1.343, allocations: 0.9454 MB / 0.7862 GB, free: 19.05 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004947/1.348, allocations: 1.575 MB / 0.7877 GB, free: 17.47 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009093/1.357, allocations: 10.19 MB / 0.7977 GB, free: 6.855 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00475/1.362, allocations: 407.5 kB / 0.7981 GB, free: 6.457 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009146/1.363, allocations: 356 kB / 0.7984 GB, free: 6.109 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005623/1.369, allocations: 4.247 MB / 0.8026 GB, free: 1.848 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001128/1.37, allocations: 0.5318 MB / 0.8031 GB, free: 1.312 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0114/1.381, allocations: 6.463 MB / 0.8094 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.573e-05/1.381, allocations: 43.98 kB / 0.8095 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/1.381, allocations: 8 kB / 0.8095 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.515e-05/1.381, allocations: 19.92 kB / 0.8095 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03146/1.413, allocations: 15.67 MB / 0.8248 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/1.413, allocations: 4 kB / 0.8248 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003379/1.416, allocations: 0.7454 MB / 0.8255 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002281/1.418, allocations: 0.7879 MB / 0.8263 GB, free: 9.469 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003931/1.419, allocations: 83.97 kB / 0.8264 GB, free: 9.387 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01213/1.431, allocations: 9.358 MB / 0.8355 GB, free: 15.6 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/1.431, allocations: 4 kB / 0.8355 GB, free: 15.6 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01876/1.45, allocations: 9.503 MB / 0.8448 GB, free: 5.984 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003421/1.453, allocations: 1.075 MB / 0.8458 GB, free: 4.887 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001479/1.455, allocations: 75.95 kB / 0.8459 GB, free: 4.812 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003141/1.458, allocations: 227.7 kB / 0.8461 GB, free: 4.59 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007894/1.459, allocations: 258.8 kB / 0.8464 GB, free: 4.336 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003983/1.459, allocations: 112 kB / 0.8465 GB, free: 4.227 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.007042/1.466, allocations: 3.35 MB / 0.8497 GB, free: 0.8906 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.2e-07/1.466, allocations: 7.938 kB / 0.8498 GB, free: 0.8828 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.2241/1.69, allocations: 1.879 MB / 0.8516 GB, free: 184.1 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01521/1.705, allocations: 10.21 MB / 0.8616 GB, free: 182.9 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01225/1.718, allocations: 7.362 MB / 0.8687 GB, free: 179.9 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/1.718, allocations: 1.562 kB / 0.8687 GB, free: 179.9 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006248/1.724, allocations: 3.311 MB / 0.872 GB, free: 178.3 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00804/1.732, allocations: 1.284 MB / 0.8732 GB, free: 177.9 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09133/1.823, allocations: 65.16 MB / 0.9369 GB, free: 129 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008214/1.831, allocations: 7.32 MB / 0.944 GB, free: 121.7 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005419/1.837, allocations: 2.148 MB / 0.9461 GB, free: 119.5 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005799/1.843, allocations: 4.33 MB / 0.9503 GB, free: 115.2 MB / 0.5607 GB Notification: Performance of SimCode: time 1.303e-06/1.843, allocations: 0.6562 kB / 0.9503 GB, free: 115.2 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.9/3.743, allocations: 148.6 MB / 1.095 GB, free: 163.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.36/27.1, allocations: 6.312 kB / 1.095 GB, free: 163.5 MB / 0.5607 GB " [Timeout remaining time 633] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 654] Reference file matches [Calling sys.exit(0), Time elapsed: 49.51719816215336]