Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009836/0.0009832, allocations: 92.19 kB / 16.95 MB, free: 6.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 187 kB / 17.84 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004131/0.0004132, allocations: 15.94 kB / 280.8 MB, free: 3.727 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09906/0.09949, allocations: 47.58 MB / 328.4 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01182/0.1114, allocations: 9.603 MB / 338 MB, free: 10.44 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008175/0.1196, allocations: 3.461 MB / 341.4 MB, free: 6.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001893/0.1216, allocations: 55.75 kB / 341.5 MB, free: 6.906 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002296/0.1239, allocations: 0.6523 MB / 342.1 MB, free: 6.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00348/0.1274, allocations: 0.7303 MB / 342.9 MB, free: 5.516 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.1287, allocations: 295.5 kB / 343.1 MB, free: 5.227 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004277/0.133, allocations: 2.966 MB / 346.1 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002779/0.1358, allocations: 1.812 MB / 347.9 MB, free: 416 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002058/0.1379, allocations: 1.019 MB / 348.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002373/0.1403, allocations: 1.413 MB / 350.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003929/0.1407, allocations: 156 kB / 350.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006818/0.1414, allocations: 227.9 kB / 350.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008577/0.1423, allocations: 0.8099 MB / 351.5 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007043/0.143, allocations: 0.5627 MB / 352.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00328/0.1463, allocations: 3.919 MB / 356 MB, free: 8.277 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1463, allocations: 0 / 356 MB, free: 8.277 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1463, allocations: 0 / 356 MB, free: 8.277 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.126e-05/0.1463, allocations: 0 / 356 MB, free: 8.277 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.004729/0.1511, allocations: 2.884 MB / 358.9 MB, free: 5.328 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.1511, allocations: 8.031 kB / 358.9 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000692/0.1518, allocations: 336.1 kB / 359.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002328/0.1542, allocations: 1.643 MB / 360.9 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.1544, allocations: 193 kB / 361.1 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003456/0.1547, allocations: 259.8 kB / 361.3 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005154/0.1599, allocations: 3.26 MB / 364.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.653e-05/0.1599, allocations: 7.906 kB / 364.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002023/0.1602, allocations: 104 kB / 364.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001231/0.1603, allocations: 124.9 kB / 364.8 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004325/0.1646, allocations: 2.732 MB / 367.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01911/0.1837, allocations: 10.55 MB / 378.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002714/0.1865, allocations: 1.342 MB / 379.4 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2416/0.4282, allocations: 0.7769 MB / 380.2 MB, free: 38.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003136/0.4285, allocations: 205.1 kB / 380.4 MB, free: 37.99 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/0.4286, allocations: 44.19 kB / 380.5 MB, free: 37.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.106e-06/0.4286, allocations: 0 / 380.5 MB, free: 37.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01687/0.4455, allocations: 7.07 MB / 387.5 MB, free: 36.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.4456, allocations: 66.59 kB / 387.6 MB, free: 36.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/0.4494, allocations: 1.779 MB / 389.4 MB, free: 36.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.4495, allocations: 44.39 kB / 389.4 MB, free: 36.7 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/0.4505, allocations: 1.279 MB / 390.7 MB, free: 36.11 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000461/0.451, allocations: 422.8 kB / 391.1 MB, free: 35.85 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.4512, allocations: 31.28 kB / 391.1 MB, free: 35.85 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.4513, allocations: 373.3 kB / 391.5 MB, free: 35.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001486/0.4528, allocations: 0.773 MB / 392.3 MB, free: 35.54 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.4545, allocations: 1.288 MB / 393.6 MB, free: 34.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001705/0.4562, allocations: 0.9769 MB / 394.5 MB, free: 34.88 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.924e-05/0.4562, allocations: 4.938 kB / 394.5 MB, free: 34.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004846/0.4611, allocations: 2.474 MB / 397 MB, free: 34.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.784e-05/0.4611, allocations: 12.28 kB / 397 MB, free: 34.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.444e-05/0.4612, allocations: 18.84 kB / 397.1 MB, free: 34.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006154/0.4618, allocations: 239 kB / 397.3 MB, free: 34.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.4632, allocations: 423.8 kB / 397.7 MB, free: 34.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002244/0.4654, allocations: 2.997 MB / 400.7 MB, free: 32.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/0.4673, allocations: 128.8 kB / 400.8 MB, free: 32.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001967/0.4675, allocations: 72.22 kB / 400.9 MB, free: 32.05 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001957/0.4695, allocations: 0.8248 MB / 401.7 MB, free: 31.62 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008396/0.4703, allocations: 186 kB / 401.9 MB, free: 31.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003894/0.4742, allocations: 2.035 MB / 403.9 MB, free: 30.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/0.4743, allocations: 11.59 kB / 403.9 MB, free: 30.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/0.4743, allocations: 4.484 kB / 404 MB, free: 30.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/0.4743, allocations: 7.594 kB / 404 MB, free: 30.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008925/0.4832, allocations: 4.751 MB / 408.7 MB, free: 26.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.4833, allocations: 4 kB / 408.7 MB, free: 26.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009937/0.4843, allocations: 258.8 kB / 409 MB, free: 26.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004606/0.4848, allocations: 207.2 kB / 409.2 MB, free: 26.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-05/0.4849, allocations: 28 kB / 409.2 MB, free: 26.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001859/0.4868, allocations: 2.975 MB / 412.2 MB, free: 23.1 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.4868, allocations: 64 / 412.2 MB, free: 23.1 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003918/0.4907, allocations: 3.129 MB / 415.3 MB, free: 19.92 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.4918, allocations: 430.6 kB / 415.7 MB, free: 19.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007745/0.4926, allocations: 32.05 kB / 415.8 MB, free: 19.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.4939, allocations: 91.88 kB / 415.8 MB, free: 19.36 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/0.4941, allocations: 84.84 kB / 415.9 MB, free: 19.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.666e-05/0.4941, allocations: 35.98 kB / 416 MB, free: 19.24 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002361/0.4965, allocations: 1.208 MB / 417.2 MB, free: 18.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4965, allocations: 4 kB / 417.2 MB, free: 18.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002714/0.4992, allocations: 485 kB / 417.6 MB, free: 17.56 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005158/0.4998, allocations: 154.4 kB / 417.8 MB, free: 17.42 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003715/0.5035, allocations: 2.333 MB / 420.1 MB, free: 15.08 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/0.5035, allocations: 12 kB / 420.1 MB, free: 15.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.5051, allocations: 1.331 MB / 421.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003129/0.5082, allocations: 473.7 kB / 421.9 MB, free: 13.24 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/0.5186, allocations: 5.788 MB / 427.7 MB, free: 7.402 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002785/0.5214, allocations: 2.014 MB / 429.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.002044/0.5235, allocations: 0.4966 MB / 430.2 MB, free: 4.852 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007849/0.5243, allocations: 135.4 kB / 430.4 MB, free: 4.719 MB / 318.1 MB Notification: Performance of SimCode: time 2.234e-06/0.5243, allocations: 0 / 430.4 MB, free: 4.719 MB / 318.1 MB Notification: Performance of Templates: time 0.05153/0.5759, allocations: 23.79 MB / 454.2 MB, free: 12.98 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches