Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.001738/0.001738, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.002057/0.002057, allocations: 212.1 kB / 23.74 MB, free: 4.66 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.453/1.453, allocations: 230.5 MB / 257.4 MB, free: 8.016 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_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_trunk_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.001877/0.001877, allocations: 67.89 kB / 377.8 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2441, allocations: 53.42 MB / 431.2 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04684/0.2909, allocations: 40.33 MB / 471.6 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0232/0.3141, allocations: 10.69 MB / 482.3 MB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007327/0.3214, allocations: 374 kB / 482.6 MB, free: 2.926 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02102/0.3425, allocations: 8.668 MB / 491.3 MB, free: 10.24 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01196/0.3544, allocations: 3.562 MB / 494.9 MB, free: 6.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007216/0.3616, allocations: 2.422 MB / 497.3 MB, free: 4.242 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01884/0.3805, allocations: 13.05 MB / 0.4984 GB, free: 7.152 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03351/0.414, allocations: 17.37 MB / 0.5153 GB, free: 5.629 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01184/0.4258, allocations: 6.97 MB / 0.5221 GB, free: 14.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01405/0.4399, allocations: 7.938 MB / 0.5299 GB, free: 6.676 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00534/0.4452, allocations: 1.953 MB / 0.5318 GB, free: 4.723 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008064/0.4533, allocations: 2.375 MB / 0.5341 GB, free: 2.348 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.411/0.8643, allocations: 3.97 MB / 0.538 GB, free: 31.36 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01379/0.8781, allocations: 7.563 MB / 0.5454 GB, free: 30.9 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02788/0.906, allocations: 25.96 MB / 0.5707 GB, free: 24.52 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.906, allocations: 3.656 kB / 0.5707 GB, free: 24.52 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.906, allocations: 3.938 kB / 0.5707 GB, free: 24.52 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007425/0.9067, allocations: 0 / 0.5707 GB, free: 24.52 MB / 446.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.04089/0.9476, allocations: 15.26 MB / 0.5856 GB, free: 14.79 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.9476, allocations: 7.25 kB / 0.5856 GB, free: 14.79 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006347/0.954, allocations: 1.715 MB / 0.5873 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03264/0.9866, allocations: 6.127 MB / 0.5933 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01747/1.004, allocations: 8.118 MB / 0.6012 GB, free: 5.441 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006774/1.005, allocations: 0.8989 MB / 0.6021 GB, free: 4.551 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004805/1.01, allocations: 1.198 MB / 0.6033 GB, free: 3.363 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05074/1.06, allocations: 18.7 MB / 0.6215 GB, free: 0.6133 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004816/1.061, allocations: 19.91 kB / 0.6216 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004294/1.065, allocations: 0.4905 MB / 0.622 GB, free: 116 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007598/1.066, allocations: 0.6421 MB / 0.6227 GB, free: 15.47 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0402/1.106, allocations: 16.8 MB / 0.6391 GB, free: 14.66 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1122/1.218, allocations: 57.24 MB / 0.695 GB, free: 5.184 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0186/1.237, allocations: 10.38 MB / 0.7051 GB, free: 12.46 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006272/1.243, allocations: 3.408 MB / 0.7084 GB, free: 9.047 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01759/1.261, allocations: 8.542 MB / 0.7168 GB, free: 0.6133 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7e-05/1.261, allocations: 81.25 kB / 0.7169 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 4.268e-06/1.261, allocations: 0 / 0.7169 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.0388/1.3, allocations: 17.28 MB / 0.7337 GB, free: 15.27 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.578e-05/1.3, allocations: 94.47 kB / 0.7338 GB, free: 15.16 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008613/1.308, allocations: 5.042 MB / 0.7387 GB, free: 10.13 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0006091/1.309, allocations: 89.7 kB / 0.7388 GB, free: 10.04 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004463/1.313, allocations: 5.637 MB / 0.7443 GB, free: 4.387 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001735/1.315, allocations: 1.42 MB / 0.7457 GB, free: 2.984 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002233/1.317, allocations: 1.331 MB / 0.747 GB, free: 1.645 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001245/1.317, allocations: 301.1 kB / 0.7473 GB, free: 1.348 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2369/1.554, allocations: 2.908 MB / 0.7501 GB, free: 160.2 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005964/1.56, allocations: 5.882 MB / 0.7559 GB, free: 156.6 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009804/1.57, allocations: 9.459 MB / 0.7651 GB, free: 152.7 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/1.57, allocations: 27.75 kB / 0.7652 GB, free: 152.7 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01444/1.585, allocations: 9.868 MB / 0.7748 GB, free: 152.4 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 7.294e-05/1.585, allocations: 52.81 kB / 0.7748 GB, free: 152.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001436/1.585, allocations: 105.8 kB / 0.7749 GB, free: 152.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002151/1.587, allocations: 0.9294 MB / 0.7759 GB, free: 152.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005108/1.592, allocations: 1.588 MB / 0.7774 GB, free: 152.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009822/1.602, allocations: 9.887 MB / 0.7871 GB, free: 147.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005202/1.607, allocations: 407.8 kB / 0.7874 GB, free: 147 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001012/1.608, allocations: 358.7 kB / 0.7878 GB, free: 146.9 MB / 0.5763 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.006775/1.615, allocations: 4.251 MB / 0.7919 GB, free: 145 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001173/1.616, allocations: 0.5397 MB / 0.7925 GB, free: 145 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009406/1.626, allocations: 6.459 MB / 0.7988 GB, free: 139.9 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.242e-05/1.626, allocations: 40 kB / 0.7988 GB, free: 139.9 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/1.626, allocations: 8 kB / 0.7988 GB, free: 139.9 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.324e-05/1.626, allocations: 18.61 kB / 0.7988 GB, free: 139.9 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.024/1.65, allocations: 15.76 MB / 0.8142 GB, free: 126.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/1.65, allocations: 4 kB / 0.8142 GB, free: 126.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00298/1.653, allocations: 0.7461 MB / 0.815 GB, free: 125.8 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001879/1.654, allocations: 0.7804 MB / 0.8157 GB, free: 125 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002452/1.655, allocations: 99.95 kB / 0.8158 GB, free: 124.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008007/1.663, allocations: 9.04 MB / 0.8246 GB, free: 115.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/1.663, allocations: 4 kB / 0.8246 GB, free: 115.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01136/1.674, allocations: 9.525 MB / 0.8339 GB, free: 106.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002574/1.677, allocations: 1.033 MB / 0.835 GB, free: 105.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006547/1.677, allocations: 75.98 kB / 0.835 GB, free: 105.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002111/1.679, allocations: 211.8 kB / 0.8352 GB, free: 105.1 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004519/1.68, allocations: 289.8 kB / 0.8355 GB, free: 104.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002252/1.68, allocations: 120 kB / 0.8356 GB, free: 104.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004097/1.684, allocations: 3.359 MB / 0.8389 GB, free: 101.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 9e-08/1.684, allocations: 0 / 0.8389 GB, free: 101.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.005646/1.69, allocations: 1.887 MB / 0.8407 GB, free: 99.43 MB / 0.5763 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.01189/1.702, allocations: 10.25 MB / 0.8508 GB, free: 89.15 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.009829/1.712, allocations: 7.213 MB / 0.8578 GB, free: 82.2 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/1.712, allocations: 2.406 kB / 0.8578 GB, free: 82.2 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004317/1.716, allocations: 3.174 MB / 0.8609 GB, free: 79.06 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005521/1.721, allocations: 1.301 MB / 0.8622 GB, free: 77.8 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09543/1.817, allocations: 65.28 MB / 0.9259 GB, free: 9.09 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01199/1.829, allocations: 7.325 MB / 0.9331 GB, free: 1.727 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006303/1.835, allocations: 2.156 MB / 0.9352 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008697/1.844, allocations: 4.35 MB / 0.9394 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of SimCode: time 1.273e-06/1.844, allocations: 0 / 0.9394 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4363/2.28, allocations: 154.7 MB / 1.09 GB, free: 127.7 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.27/26.55, allocations: 9.703 kB / 1.09 GB, free: 127.7 MB / 0.6232 GB " [Timeout remaining time 633] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 653] Reference file matches [Calling sys.exit(0), Time elapsed: 42.87848282814957]