Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6400,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6400,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001272/0.001272, allocations: 115.5 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001298/0.001298, allocations: 210.8 kB / 19.41 MB, free: 3.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.406/1.406, allocations: 227.7 MB / 247.9 MB, free: 10.2 MB / 206.1 MB 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.001884/0.001884, allocations: 71.88 kB / 359.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2436, allocations: 50.55 MB / 410.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01091/0.2545, allocations: 9.123 MB / 419.3 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005559/0.2601, allocations: 3.186 MB / 422.5 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008276/0.2609, allocations: 43.81 kB / 422.6 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.2625, allocations: 0.7339 MB / 423.3 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001723/0.2642, allocations: 0.7612 MB / 424.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006714/0.2649, allocations: 315.5 kB / 424.4 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002441/0.2673, allocations: 2.136 MB / 426.5 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.2686, allocations: 1.016 MB / 427.5 MB, free: 36 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001228/0.2699, allocations: 0.9344 MB / 428.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001383/0.2712, allocations: 1.148 MB / 429.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003072/0.2716, allocations: 228 kB / 429.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005701/0.2721, allocations: 335.7 kB / 430.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000688/0.2728, allocations: 0.6856 MB / 430.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001181/0.274, allocations: 1.093 MB / 431.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003476/0.2775, allocations: 3.149 MB / 435.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2775, allocations: 0 / 435.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2775, allocations: 0 / 435.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.519e-05/0.2775, allocations: 0 / 435.1 MB, free: 8.449 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.004396/0.2819, allocations: 2.353 MB / 437.4 MB, free: 6.035 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.282, allocations: 12.03 kB / 437.5 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006797/0.2826, allocations: 239.5 kB / 437.7 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002202/0.2848, allocations: 1.244 MB / 438.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.2849, allocations: 115.5 kB / 439 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002544/0.2852, allocations: 159.9 kB / 439.2 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003385/0.2886, allocations: 2.033 MB / 441.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.275e-05/0.2886, allocations: 3.953 kB / 441.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001472/0.2888, allocations: 67.98 kB / 441.3 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.403e-05/0.2889, allocations: 78.92 kB / 441.4 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002932/0.2918, allocations: 1.678 MB / 443.1 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01064/0.3024, allocations: 7.059 MB / 450.1 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009113/0.3033, allocations: 456.5 kB / 450.6 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004517/0.3038, allocations: 266 kB / 450.8 MB, free: 8.188 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000221/0.304, allocations: 121.5 kB / 450.9 MB, free: 8.051 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.3041, allocations: 39.38 kB / 451 MB, free: 8.004 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.365e-06/0.3041, allocations: 0 / 451 MB, free: 8.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.007177/0.3112, allocations: 3.06 MB / 454 MB, free: 4.875 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/0.3113, allocations: 59.97 kB / 454.1 MB, free: 4.805 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002417/0.3137, allocations: 1.632 MB / 455.7 MB, free: 3.164 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.339e-05/0.3138, allocations: 37.7 kB / 455.8 MB, free: 3.121 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008492/0.3146, allocations: 1.068 MB / 456.8 MB, free: 2.043 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.3148, allocations: 246 kB / 457.1 MB, free: 1.801 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004337/0.3153, allocations: 319.3 kB / 457.4 MB, free: 1.484 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3154, allocations: 305.1 kB / 457.7 MB, free: 1.184 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000933/0.3163, allocations: 0.5231 MB / 458.2 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001668/0.318, allocations: 1.462 MB / 459.7 MB, free: 14.74 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002762/0.3208, allocations: 2.134 MB / 461.8 MB, free: 12.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.588e-05/0.3208, allocations: 12 kB / 461.8 MB, free: 12.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003802/0.3246, allocations: 2.165 MB / 464 MB, free: 9.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.3246, allocations: 19.94 kB / 464 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.019e-05/0.3247, allocations: 36 kB / 464 MB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005836/0.3252, allocations: 226.5 kB / 464.3 MB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.3264, allocations: 391.3 kB / 464.6 MB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001916/0.3283, allocations: 1.855 MB / 466.5 MB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/0.3297, allocations: 151.7 kB / 466.6 MB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/0.3299, allocations: 92 kB / 466.7 MB, free: 7.047 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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 (204): * Single equations (assignments): 201 * 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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009411/0.3308, allocations: 0.5905 MB / 467.3 MB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002818/0.3311, allocations: 163 kB / 467.5 MB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002086/0.3332, allocations: 1.086 MB / 468.6 MB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.3332, allocations: 8 kB / 468.6 MB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3332, allocations: 3.938 kB / 468.6 MB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.3332, allocations: 4 kB / 468.6 MB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00492/0.3381, allocations: 2.748 MB / 471.3 MB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/0.3381, allocations: 4 kB / 471.3 MB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005142/0.3386, allocations: 115.9 kB / 471.4 MB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004478/0.3391, allocations: 170.5 kB / 471.6 MB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.089e-05/0.3391, allocations: 16.03 kB / 471.6 MB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001727/0.3408, allocations: 1.781 MB / 473.4 MB, free: 88 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.3408, allocations: 11.91 kB / 473.4 MB, free: 76 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002759/0.3436, allocations: 1.636 MB / 475.1 MB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006618/0.3443, allocations: 315.9 kB / 475.4 MB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.3444, allocations: 12 kB / 475.4 MB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006803/0.3451, allocations: 51.94 kB / 475.4 MB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.3452, allocations: 52.38 kB / 475.5 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.452e-05/0.3453, allocations: 20.06 kB / 475.5 MB, free: 13.94 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001608/0.3469, allocations: 1.086 MB / 476.6 MB, free: 12.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3469, allocations: 0 / 476.6 MB, free: 12.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001364/0.3483, allocations: 360 kB / 476.9 MB, free: 12.5 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (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 (60): * Single equations (assignments): 57 * 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 {(2,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.0003135/0.3486, allocations: 174.4 kB / 477.1 MB, free: 12.33 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002693/0.3513, allocations: 1.575 MB / 478.7 MB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3513, allocations: 0 / 478.7 MB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.3524, allocations: 0.7285 MB / 479.4 MB, free: 9.922 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/0.3541, allocations: 396.9 kB / 479.8 MB, free: 9.543 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004787/0.3589, allocations: 3.012 MB / 482.8 MB, free: 6.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.3601, allocations: 1.465 MB / 484.3 MB, free: 4.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009354/0.3611, allocations: 354 kB / 484.6 MB, free: 4.629 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002672/0.3613, allocations: 115.4 kB / 484.7 MB, free: 4.52 MB / 398.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3613, allocations: 0 / 484.7 MB, free: 4.52 MB / 398.1 MB Notification: Performance of Templates: time 0.03697/0.3983, allocations: 20.22 MB / 0.4931 GB, free: 0.5234 MB / 414.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches