Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.00149/0.00149, allocations: 116.1 kB / 21.18 MB, free: 0.5898 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.001697/0.001697, allocations: 209.9 kB / 24.47 MB, free: 3.996 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.447/1.447, allocations: 230.4 MB / 258.1 MB, free: 8.141 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 71.81 kB / 378.8 MB, free: 2.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2895, allocations: 53.32 MB / 432.1 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01865/0.3081, allocations: 15.92 MB / 448 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01123/0.3193, allocations: 5.373 MB / 453.4 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003431/0.3228, allocations: 107.6 kB / 453.5 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003612/0.3264, allocations: 1.138 MB / 454.6 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004774/0.3311, allocations: 1.285 MB / 455.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002439/0.3336, allocations: 0.9389 MB / 456.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005266/0.3389, allocations: 3.652 MB / 460.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002751/0.3416, allocations: 1.916 MB / 462.4 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002746/0.3443, allocations: 1.745 MB / 464.1 MB, free: 7.094 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003162/0.3475, allocations: 2.152 MB / 466.3 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006599/0.3482, allocations: 483.9 kB / 466.8 MB, free: 4.461 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001498/0.3497, allocations: 0.7028 MB / 467.5 MB, free: 3.758 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001082/0.3508, allocations: 1.165 MB / 468.6 MB, free: 2.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002212/0.353, allocations: 2.042 MB / 470.7 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007502/0.3605, allocations: 6.322 MB / 477 MB, free: 10.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3605, allocations: 0 / 477 MB, free: 10.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3605, allocations: 0 / 477 MB, free: 10.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001446/0.3606, allocations: 0 / 477 MB, free: 10.2 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01139/0.372, allocations: 4.362 MB / 481.4 MB, free: 5.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.3721, allocations: 12.03 kB / 481.4 MB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002946/0.375, allocations: 0.6349 MB / 482 MB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004633/0.3796, allocations: 2.305 MB / 484.3 MB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001976/0.3798, allocations: 242.7 kB / 484.6 MB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004859/0.3803, allocations: 320 kB / 484.9 MB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007205/0.3875, allocations: 4.051 MB / 488.9 MB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.055e-05/0.3876, allocations: 3.953 kB / 488.9 MB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002839/0.3879, allocations: 128 kB / 489 MB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001585/0.388, allocations: 146.2 kB / 489.2 MB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005993/0.394, allocations: 3.39 MB / 492.6 MB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02172/0.4157, allocations: 13.4 MB / 0.4941 GB, free: 12.53 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00473/0.4205, allocations: 4.158 MB / 0.4982 GB, free: 7.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001636/0.4221, allocations: 0.9298 MB / 0.4991 GB, free: 6.895 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005284/0.4274, allocations: 2.859 MB / 0.5019 GB, free: 3.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/0.4274, allocations: 47.5 kB / 0.5019 GB, free: 3.855 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.655e-06/0.4274, allocations: 4 kB / 0.5019 GB, free: 3.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01243/0.4399, allocations: 6.048 MB / 0.5078 GB, free: 13.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.4399, allocations: 64.72 kB / 0.5079 GB, free: 13.64 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003411/0.4433, allocations: 1.909 MB / 0.5098 GB, free: 11.69 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000198/0.4435, allocations: 49.7 kB / 0.5098 GB, free: 11.63 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001342/0.4449, allocations: 1.552 MB / 0.5113 GB, free: 10.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005393/0.4454, allocations: 0.4997 MB / 0.5118 GB, free: 9.562 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000536/0.446, allocations: 343.4 kB / 0.5121 GB, free: 9.219 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.4461, allocations: 309.1 kB / 0.5124 GB, free: 8.914 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.4475, allocations: 0.7691 MB / 0.5132 GB, free: 8.145 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001846/0.4493, allocations: 1.371 MB / 0.5145 GB, free: 6.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003265/0.4526, allocations: 2.324 MB / 0.5168 GB, free: 3.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.388e-05/0.4526, allocations: 11.94 kB / 0.5168 GB, free: 3.898 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004484/0.4571, allocations: 2.482 MB / 0.5192 GB, free: 1.398 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.252e-05/0.4571, allocations: 16 kB / 0.5192 GB, free: 1.383 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.191e-05/0.4571, allocations: 16 kB / 0.5193 GB, free: 1.367 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003906/0.4575, allocations: 122.5 kB / 0.5194 GB, free: 1.238 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/0.4593, allocations: 487.5 kB / 0.5198 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.4607, allocations: 1.41 MB / 0.5212 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.4623, allocations: 115.8 kB / 0.5213 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/0.4625, allocations: 83.98 kB / 0.5214 GB, free: 15.02 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001912/0.4644, allocations: 0.989 MB / 0.5224 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004778/0.4649, allocations: 214.6 kB / 0.5226 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00363/0.4685, allocations: 1.962 MB / 0.5245 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/0.4685, allocations: 12 kB / 0.5245 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4685, allocations: 4 kB / 0.5245 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.4685, allocations: 7.969 kB / 0.5245 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008921/0.4775, allocations: 5.007 MB / 0.5294 GB, free: 6.688 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.4775, allocations: 0 / 0.5294 GB, free: 6.688 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/0.4788, allocations: 311.5 kB / 0.5297 GB, free: 6.383 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003131/0.4791, allocations: 98.77 kB / 0.5298 GB, free: 6.277 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.856e-05/0.4792, allocations: 28 kB / 0.5298 GB, free: 6.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.4804, allocations: 1.382 MB / 0.5312 GB, free: 4.727 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4804, allocations: 4 kB / 0.5312 GB, free: 4.723 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005184/0.4856, allocations: 3.099 MB / 0.5342 GB, free: 1.562 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/0.4869, allocations: 463.6 kB / 0.5346 GB, free: 1.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002698/0.4872, allocations: 28 kB / 0.5347 GB, free: 1.062 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009468/0.4881, allocations: 83.89 kB / 0.5348 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.4883, allocations: 93.06 kB / 0.5348 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.212e-05/0.4884, allocations: 44.06 kB / 0.5349 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.2228/0.7111, allocations: 1.289 MB / 0.5361 GB, free: 99.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7111, allocations: 0 / 0.5361 GB, free: 99.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002803/0.7139, allocations: 0.5358 MB / 0.5367 GB, free: 99.91 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.0004115/0.7144, allocations: 169.4 kB / 0.5368 GB, free: 99.83 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003403/0.7178, allocations: 2.133 MB / 0.5389 GB, free: 99.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.7178, allocations: 0 / 0.5389 GB, free: 99.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001275/0.719, allocations: 1.101 MB / 0.54 GB, free: 98.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002479/0.7215, allocations: 0.526 MB / 0.5405 GB, free: 98.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008859/0.7304, allocations: 5.739 MB / 0.5461 GB, free: 95.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001434/0.7318, allocations: 2.215 MB / 0.5483 GB, free: 94.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006876/0.7325, allocations: 170.1 kB / 0.5484 GB, free: 94.57 MB / 446.1 MB Notification: Performance of SimCode: time 1.443e-06/0.7325, allocations: 0 / 0.5484 GB, free: 94.57 MB / 446.1 MB Notification: Performance of Templates: time 0.07128/0.8038, allocations: 87.09 MB / 0.6335 GB, free: 11.9 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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: 12.368130864109844]