Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 114.5 kB / 17.69 MB, free: 5.312 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.001451/0.001451, allocations: 191 kB / 18.63 MB, free: 4.379 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.314/1.314, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009446/0.0009446, allocations: 43.78 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08747/0.08843, allocations: 49.45 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.009488/0.09797, allocations: 8.982 MB / 360.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005268/0.1033, allocations: 3.166 MB / 363.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006893/0.104, allocations: 43.81 kB / 363.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.1054, allocations: 0.6562 MB / 364.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001581/0.107, allocations: 0.6989 MB / 365.1 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000636/0.1077, allocations: 323.4 kB / 365.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001882/0.1096, allocations: 2.115 MB / 367.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001456/0.111, allocations: 1.429 MB / 368.9 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009822/0.112, allocations: 0.9108 MB / 369.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001185/0.1132, allocations: 1.129 MB / 371 MB, free: 144 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1617/0.2749, allocations: 228.5 kB / 371.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.2761, allocations: 313.6 kB / 371.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007723/0.2769, allocations: 0.6746 MB / 372.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001271/0.2782, allocations: 1.079 MB / 373.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003642/0.2819, allocations: 3.107 MB / 376.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2819, allocations: 1.344 kB / 376.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2819, allocations: 0 / 376.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.533e-05/0.282, allocations: 1.375 kB / 376.4 MB, free: 13.04 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004773/0.2867, allocations: 2.27 MB / 378.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2868, allocations: 10.25 kB / 378.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006177/0.2874, allocations: 224.3 kB / 378.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00208/0.2895, allocations: 1.216 MB / 380.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.364e-05/0.2896, allocations: 115.4 kB / 380.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002788/0.2899, allocations: 155.4 kB / 380.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003186/0.2931, allocations: 2.011 MB / 382.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.08e-05/0.2932, allocations: 6.062 kB / 382.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/0.2933, allocations: 61.56 kB / 382.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.058e-05/0.2934, allocations: 78.84 kB / 382.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002561/0.296, allocations: 1.655 MB / 384.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009286/0.3053, allocations: 6.88 MB / 391 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008121/0.3061, allocations: 450.7 kB / 391.5 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003577/0.3065, allocations: 259.4 kB / 391.7 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002191/0.3067, allocations: 117.6 kB / 391.8 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.3067, allocations: 37.72 kB / 391.9 MB, free: 5.449 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.735e-06/0.3068, allocations: 4 kB / 391.9 MB, free: 5.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.006473/0.3132, allocations: 3.281 MB / 395.1 MB, free: 3.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001888/0.3151, allocations: 2.339 MB / 397.5 MB, free: 1.461 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00222/0.3174, allocations: 1.616 MB / 399.1 MB, free: 0.582 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.443e-05/0.3175, allocations: 33.7 kB / 399.1 MB, free: 0.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006762/0.3182, allocations: 1.018 MB / 400.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.3184, allocations: 242.3 kB / 400.4 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004745/0.3189, allocations: 326.2 kB / 400.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.918e-05/0.319, allocations: 305.2 kB / 401 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007271/0.3197, allocations: 0.5138 MB / 401.5 MB, free: 14.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.321, allocations: 1.466 MB / 403 MB, free: 13.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002279/0.3233, allocations: 2.135 MB / 405.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.325e-05/0.3233, allocations: 19.41 kB / 405.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003697/0.327, allocations: 2.153 MB / 407.3 MB, free: 9.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/0.3271, allocations: 24.91 kB / 407.3 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.595e-05/0.3271, allocations: 36 kB / 407.4 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005264/0.3277, allocations: 229.6 kB / 407.6 MB, free: 9.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.3288, allocations: 391.4 kB / 408 MB, free: 8.922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001863/0.3307, allocations: 1.845 MB / 409.8 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001715/0.3324, allocations: 139.4 kB / 409.9 MB, free: 6.824 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.3325, allocations: 99.94 kB / 410 MB, free: 6.727 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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.001131/0.3337, allocations: 0.585 MB / 410.6 MB, free: 6.164 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002712/0.334, allocations: 150.1 kB / 410.8 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001847/0.3358, allocations: 1.117 MB / 411.9 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.483e-06/0.3358, allocations: 4 kB / 411.9 MB, free: 4.887 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.3358, allocations: 4 kB / 411.9 MB, free: 4.883 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.3359, allocations: 3.984 kB / 411.9 MB, free: 4.879 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005588/0.3415, allocations: 3.392 MB / 415.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.377e-06/0.3415, allocations: 8 kB / 415.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004268/0.3419, allocations: 112.4 kB / 415.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000606/0.3425, allocations: 221.7 kB / 415.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.708e-05/0.3426, allocations: 20.92 kB / 415.6 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003895/0.3465, allocations: 4.041 MB / 419.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002038/0.3485, allocations: 2.176 MB / 421.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002746/0.3513, allocations: 1.745 MB / 423.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008615/0.3522, allocations: 306.3 kB / 423.9 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001752/0.3524, allocations: 27.39 kB / 423.9 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006696/0.353, allocations: 51.89 kB / 424 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.3532, allocations: 67.2 kB / 424 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.358e-05/0.3533, allocations: 27.98 kB / 424.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001757/0.355, allocations: 1.063 MB / 425.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.355, allocations: 0 / 425.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001797/0.3568, allocations: 380 kB / 425.5 MB, free: 6.699 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * 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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003201/0.3572, allocations: 177.9 kB / 425.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002521/0.3597, allocations: 1.622 MB / 427.3 MB, free: 4.953 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3597, allocations: 0 / 427.3 MB, free: 4.953 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001277/0.361, allocations: 0.8481 MB / 428.2 MB, free: 4.078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001812/0.3628, allocations: 419.4 kB / 428.6 MB, free: 3.684 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005092/0.3679, allocations: 3.163 MB / 431.7 MB, free: 440 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/0.3691, allocations: 1.469 MB / 433.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001027/0.3701, allocations: 354 kB / 433.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002649/0.3704, allocations: 111.4 kB / 433.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of SimCode: time 2.695e-06/0.3704, allocations: 0 / 433.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of Templates: time 0.03569/0.4061, allocations: 20.39 MB / 454 MB, free: 10.36 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches