Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 103.1 kB / 17.59 MB, free: 5.426 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.001184/0.001184, allocations: 191.6 kB / 18.52 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009778/0.000978, allocations: 47.39 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09182/0.09282, allocations: 49.44 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01258/0.1054, allocations: 10.92 MB / 361.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007719/0.1132, allocations: 3.625 MB / 365.3 MB, free: 5.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00204/0.1153, allocations: 67.69 kB / 365.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002229/0.1175, allocations: 0.815 MB / 366.2 MB, free: 4.934 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002865/0.1204, allocations: 0.858 MB / 367 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.1215, allocations: 455.3 kB / 367.5 MB, free: 3.625 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003104/0.1246, allocations: 2.915 MB / 370.4 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.164/0.2886, allocations: 2.73 MB / 373.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002103/0.2908, allocations: 1.367 MB / 374.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002734/0.2935, allocations: 1.755 MB / 376.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007597/0.2943, allocations: 373 kB / 376.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001245/0.2956, allocations: 472.1 kB / 377.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001106/0.2967, allocations: 1.067 MB / 378.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001879/0.2986, allocations: 1.677 MB / 379.8 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005433/0.304, allocations: 4.818 MB / 384.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3041, allocations: 0 / 384.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3041, allocations: 0 / 384.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001515/0.3042, allocations: 0 / 384.6 MB, free: 8.531 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007556/0.3118, allocations: 3.394 MB / 388 MB, free: 6.641 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.3119, allocations: 9.938 kB / 388 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009387/0.3128, allocations: 335.8 kB / 388.3 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002944/0.3158, allocations: 1.765 MB / 390.1 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001638/0.3159, allocations: 199 kB / 390.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003416/0.3163, allocations: 255.6 kB / 390.6 MB, free: 5.145 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005373/0.3217, allocations: 3.277 MB / 393.8 MB, free: 3.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.648e-05/0.3218, allocations: 7.125 kB / 393.8 MB, free: 3.207 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002277/0.322, allocations: 99.73 kB / 393.9 MB, free: 3.133 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001326/0.3221, allocations: 130.7 kB / 394.1 MB, free: 3.105 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004151/0.3263, allocations: 2.746 MB / 396.8 MB, free: 1.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01516/0.3415, allocations: 10.49 MB / 407.3 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001884/0.3434, allocations: 1.365 MB / 408.7 MB, free: 7.164 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/0.3447, allocations: 0.7932 MB / 409.5 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002846/0.345, allocations: 202.9 kB / 409.7 MB, free: 6.145 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.345, allocations: 39.56 kB / 409.7 MB, free: 6.098 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 2.955e-06/0.345, allocations: 0 / 409.7 MB, free: 6.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01552/0.3605, allocations: 6.907 MB / 416.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.3606, allocations: 64.41 kB / 416.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002624/0.3633, allocations: 1.789 MB / 418.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.3634, allocations: 41.7 kB / 418.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008715/0.3642, allocations: 1.27 MB / 419.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003336/0.3646, allocations: 433.9 kB / 420.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004766/0.3651, allocations: 295.2 kB / 420.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.476e-05/0.3652, allocations: 313 kB / 420.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.3664, allocations: 0.7808 MB / 421.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001526/0.3679, allocations: 1.285 MB / 422.8 MB, free: 8.594 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002821/0.3707, allocations: 2.208 MB / 425.1 MB, free: 6.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.3708, allocations: 9.125 kB / 425.1 MB, free: 6.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003977/0.3748, allocations: 2.476 MB / 427.5 MB, free: 3.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.3748, allocations: 12 kB / 427.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.209e-05/0.3748, allocations: 16 kB / 427.6 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006238/0.3754, allocations: 239.6 kB / 427.8 MB, free: 3.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.3769, allocations: 415.4 kB / 428.2 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002671/0.3796, allocations: 3.241 MB / 431.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001451/0.3811, allocations: 131.8 kB / 431.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.3812, allocations: 68 kB / 431.6 MB, free: 15.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001409/0.3826, allocations: 0.8215 MB / 432.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003269/0.383, allocations: 189.7 kB / 432.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003337/0.3863, allocations: 2.046 MB / 434.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.3863, allocations: 15.94 kB / 434.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.3863, allocations: 0 / 434.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.416e-05/0.3864, allocations: 7.969 kB / 434.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007569/0.3939, allocations: 4.752 MB / 439.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.394, allocations: 4 kB / 439.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/0.3951, allocations: 259.4 kB / 439.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005587/0.3957, allocations: 207.1 kB / 439.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.152e-05/0.3958, allocations: 28 kB / 440 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002671/0.3984, allocations: 3.223 MB / 443.2 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.3985, allocations: 4 kB / 443.2 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004649/0.4031, allocations: 3.132 MB / 446.3 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.4043, allocations: 422.7 kB / 446.7 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005553/0.4048, allocations: 24.05 kB / 446.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/0.4061, allocations: 99.75 kB / 446.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002035/0.4063, allocations: 80.95 kB / 446.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.377e-05/0.4064, allocations: 35.56 kB / 447 MB, free: 15.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002603/0.409, allocations: 1.224 MB / 448.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.409, allocations: 0 / 448.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002237/0.4113, allocations: 492 kB / 448.7 MB, free: 14.08 MB / 366.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.0004972/0.4118, allocations: 185.6 kB / 448.9 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005416/0.4172, allocations: 2.987 MB / 451.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.026e-06/0.4173, allocations: 0 / 451.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001997/0.4193, allocations: 1.351 MB / 453.2 MB, free: 9.523 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/0.4225, allocations: 0.4904 MB / 453.7 MB, free: 9.043 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/0.4328, allocations: 4.971 MB / 458.7 MB, free: 4.023 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002317/0.4351, allocations: 1.974 MB / 460.6 MB, free: 2.016 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008236/0.436, allocations: 155.4 kB / 460.8 MB, free: 1.863 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.436, allocations: 0 / 460.8 MB, free: 1.863 MB / 366.1 MB Notification: Performance of Templates: time 0.3003/0.7363, allocations: 82.56 MB / 0.5306 GB, free: 154.6 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches