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.001281/0.001281, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001396/0.001396, allocations: 213 kB / 23.73 MB, free: 4.164 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.413/1.413, allocations: 230.5 MB / 257.4 MB, free: 7.789 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.001867/0.001867, allocations: 59.91 kB / 377.8 MB, free: 2.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2487, allocations: 53.41 MB / 431.2 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.05399/0.3027, allocations: 34.39 MB / 465.6 MB, free: 3.848 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03802/0.3408, allocations: 10.35 MB / 475.9 MB, free: 9.461 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009468/0.3502, allocations: 373.9 kB / 476.3 MB, free: 9.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0322/0.3824, allocations: 8.019 MB / 484.3 MB, free: 1.055 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01811/0.4005, allocations: 3.484 MB / 487.8 MB, free: 13.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008812/0.4093, allocations: 2.328 MB / 490.1 MB, free: 11.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0202/0.4295, allocations: 13.04 MB / 0.4914 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03419/0.4637, allocations: 17.13 MB / 0.5081 GB, free: 12.88 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01049/0.4742, allocations: 6.974 MB / 0.5149 GB, free: 5.883 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01305/0.4873, allocations: 7.54 MB / 0.5223 GB, free: 14.32 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00485/0.4921, allocations: 1.949 MB / 0.5242 GB, free: 12.37 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007554/0.4997, allocations: 2.343 MB / 0.5265 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00588/0.5056, allocations: 3.967 MB / 0.5303 GB, free: 6.047 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009392/0.5149, allocations: 5.903 MB / 0.5361 GB, free: 124 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2386/0.7535, allocations: 26.07 MB / 0.5616 GB, free: 39.26 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.7536, allocations: 0.8125 kB / 0.5616 GB, free: 39.26 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.7536, allocations: 0 / 0.5616 GB, free: 39.26 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007191/0.7543, allocations: 0 / 0.5616 GB, free: 39.26 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.04078/0.7951, allocations: 15.24 MB / 0.5765 GB, free: 31.22 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.7951, allocations: 13.27 kB / 0.5765 GB, free: 31.21 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005237/0.8003, allocations: 1.714 MB / 0.5781 GB, free: 30 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0323/0.8326, allocations: 6.121 MB / 0.5841 GB, free: 27.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01716/0.8498, allocations: 8.104 MB / 0.592 GB, free: 22.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007528/0.8505, allocations: 0.9029 MB / 0.5929 GB, free: 21.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005362/0.8559, allocations: 1.202 MB / 0.5941 GB, free: 21.18 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04345/0.8994, allocations: 18.91 MB / 0.6126 GB, free: 2.156 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005808/0.8999, allocations: 23.89 kB / 0.6126 GB, free: 2.133 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004609/0.9045, allocations: 0.4977 MB / 0.6131 GB, free: 1.645 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000594/0.9051, allocations: 0.6382 MB / 0.6137 GB, free: 1.004 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04259/0.9477, allocations: 16.74 MB / 0.63 GB, free: 256 kB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1253/1.073, allocations: 52.48 MB / 0.6813 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02002/1.093, allocations: 10.27 MB / 0.6913 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007066/1.1, allocations: 3.409 MB / 0.6946 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01975/1.12, allocations: 7.722 MB / 0.7022 GB, free: 7.895 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.343e-05/1.12, allocations: 73.25 kB / 0.7023 GB, free: 7.812 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 6.633e-06/1.12, allocations: 4 kB / 0.7023 GB, free: 7.809 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.04414/1.164, allocations: 17.27 MB / 0.7191 GB, free: 6.562 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.987e-05/1.164, allocations: 93.66 kB / 0.7192 GB, free: 6.461 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01111/1.175, allocations: 5.204 MB / 0.7243 GB, free: 1.262 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000823/1.176, allocations: 93.69 kB / 0.7244 GB, free: 1.164 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004655/1.181, allocations: 5.638 MB / 0.7299 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001902/1.183, allocations: 1.418 MB / 0.7313 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002406/1.185, allocations: 1.331 MB / 0.7326 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001265/1.185, allocations: 301.1 kB / 0.7329 GB, free: 8.473 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004892/1.19, allocations: 2.914 MB / 0.7357 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00771/1.198, allocations: 5.933 MB / 0.7415 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01361/1.211, allocations: 9.458 MB / 0.7507 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001077/1.212, allocations: 28 kB / 0.7508 GB, free: 3.75 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2475/1.459, allocations: 9.862 MB / 0.7604 GB, free: 199.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001566/1.459, allocations: 48.78 kB / 0.7604 GB, free: 199.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001959/1.459, allocations: 100.5 kB / 0.7605 GB, free: 199.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002625/1.462, allocations: 0.9363 MB / 0.7615 GB, free: 199.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006407/1.468, allocations: 1.592 MB / 0.763 GB, free: 199.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/1.479, allocations: 9.764 MB / 0.7725 GB, free: 195.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005965/1.485, allocations: 404.4 kB / 0.7729 GB, free: 195.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001374/1.487, allocations: 363.2 kB / 0.7733 GB, free: 195 MB / 0.5762 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.008367/1.495, allocations: 4.247 MB / 0.7774 GB, free: 193 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/1.496, allocations: 0.5404 MB / 0.778 GB, free: 193 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01036/1.507, allocations: 6.458 MB / 0.7843 GB, free: 190.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.503e-05/1.507, allocations: 39.88 kB / 0.7843 GB, free: 190.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.818e-05/1.507, allocations: 11.75 kB / 0.7843 GB, free: 190.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.558e-05/1.507, allocations: 24.53 kB / 0.7843 GB, free: 190.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02737/1.534, allocations: 15 MB / 0.799 GB, free: 181.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.49e-05/1.534, allocations: 4 kB / 0.799 GB, free: 181.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003335/1.538, allocations: 0.7533 MB / 0.7997 GB, free: 181.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002091/1.54, allocations: 0.7855 MB / 0.8005 GB, free: 180.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003761/1.54, allocations: 95.28 kB / 0.8006 GB, free: 180.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008652/1.549, allocations: 8.925 MB / 0.8093 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.549, allocations: 4 kB / 0.8093 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01259/1.561, allocations: 9.523 MB / 0.8186 GB, free: 164 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003032/1.564, allocations: 1.035 MB / 0.8196 GB, free: 163.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008105/1.565, allocations: 68 kB / 0.8197 GB, free: 163.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002319/1.568, allocations: 222 kB / 0.8199 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005037/1.568, allocations: 279.7 kB / 0.8201 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002491/1.568, allocations: 119.4 kB / 0.8203 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004548/1.573, allocations: 3.359 MB / 0.8235 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/1.573, allocations: 3.938 kB / 0.8235 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00662/1.579, allocations: 1.883 MB / 0.8254 GB, free: 157.5 MB / 0.5762 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.01271/1.592, allocations: 10.24 MB / 0.8354 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01075/1.603, allocations: 7.219 MB / 0.8424 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/1.603, allocations: 8.125 kB / 0.8424 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004504/1.607, allocations: 3.173 MB / 0.8455 GB, free: 136.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006069/1.613, allocations: 1.302 MB / 0.8468 GB, free: 135.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08988/1.703, allocations: 65.22 MB / 0.9105 GB, free: 66.38 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00709/1.71, allocations: 6.935 MB / 0.9173 GB, free: 59.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00569/1.716, allocations: 2.152 MB / 0.9194 GB, free: 57.25 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005775/1.722, allocations: 4.354 MB / 0.9236 GB, free: 52.89 MB / 0.5762 GB Notification: Performance of SimCode: time 1.132e-06/1.722, allocations: 0 / 0.9236 GB, free: 52.89 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4399/2.162, allocations: 152.6 MB / 1.073 GB, free: 133.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.04/21.2, allocations: 13.38 kB / 1.073 GB, free: 133.5 MB / 0.5762 GB " [Timeout remaining time 639] (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: 36.67482995800674]