Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001604/0.001604, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001021/0.001021, allocations: 101 kB / 296.7 MB, free: 6.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009141/0.0009141, allocations: 51.92 kB / 356.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2154/0.2163, allocations: 50.45 MB / 407.1 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.008608/0.2249, allocations: 10.84 MB / 417.9 MB, free: 16.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005784/0.2308, allocations: 3.635 MB / 421.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001687/0.2325, allocations: 59.75 kB / 421.6 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001779/0.2343, allocations: 0.7225 MB / 422.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002743/0.2371, allocations: 0.7849 MB / 423.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.2383, allocations: 399.6 kB / 423.5 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002995/0.2413, allocations: 3.304 MB / 426.8 MB, free: 8.047 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002057/0.2434, allocations: 2.295 MB / 429.1 MB, free: 5.688 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001571/0.2449, allocations: 1.222 MB / 430.3 MB, free: 4.461 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001543/0.2465, allocations: 1.689 MB / 432 MB, free: 2.766 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003549/0.2469, allocations: 232 kB / 432.2 MB, free: 2.539 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006825/0.2475, allocations: 347.8 kB / 432.6 MB, free: 2.199 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006368/0.2482, allocations: 0.9385 MB / 433.5 MB, free: 1.258 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00115/0.2494, allocations: 1.516 MB / 435 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003608/0.253, allocations: 4.712 MB / 439.7 MB, free: 11.01 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.253, allocations: 4 kB / 439.7 MB, free: 11 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.253, allocations: 0 / 439.7 MB, free: 11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.729e-05/0.2531, allocations: 8 kB / 439.7 MB, free: 11 MB / 314.7 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.006199/0.2593, allocations: 3.379 MB / 443.1 MB, free: 7.551 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.2593, allocations: 12.03 kB / 443.1 MB, free: 7.539 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008046/0.2602, allocations: 353 kB / 443.5 MB, free: 7.191 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002846/0.263, allocations: 1.768 MB / 445.2 MB, free: 5.367 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001581/0.2632, allocations: 197.3 kB / 445.4 MB, free: 5.172 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003123/0.2635, allocations: 247.9 kB / 445.7 MB, free: 4.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004621/0.2681, allocations: 3.299 MB / 449 MB, free: 1.551 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.744e-05/0.2682, allocations: 3.906 kB / 449 MB, free: 1.547 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002096/0.2684, allocations: 104 kB / 449.1 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/0.2686, allocations: 120.9 kB / 449.2 MB, free: 1.324 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0042/0.2728, allocations: 2.752 MB / 451.9 MB, free: 14.56 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0147/0.2875, allocations: 10.48 MB / 462.4 MB, free: 3.703 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001724/0.2893, allocations: 1.354 MB / 463.8 MB, free: 2.285 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00115/0.2904, allocations: 0.7823 MB / 464.6 MB, free: 1.504 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002724/0.2907, allocations: 211.1 kB / 464.8 MB, free: 1.258 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.2908, allocations: 43.56 kB / 464.8 MB, free: 1.207 MB / 330.7 MB Notification: Performance of pre-optimization done (n=98): time 4.779e-06/0.2908, allocations: 0 / 464.8 MB, free: 1.207 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.01465/0.3054, allocations: 6.903 MB / 471.7 MB, free: 10.19 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.3055, allocations: 64.41 kB / 471.8 MB, free: 10.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002854/0.3084, allocations: 1.797 MB / 473.6 MB, free: 8.316 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.358e-05/0.3085, allocations: 45.7 kB / 473.6 MB, free: 8.266 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008494/0.3093, allocations: 1.275 MB / 474.9 MB, free: 6.973 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003364/0.3097, allocations: 429.8 kB / 475.3 MB, free: 6.547 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004786/0.3102, allocations: 295.3 kB / 475.6 MB, free: 6.254 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3103, allocations: 309.1 kB / 475.9 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.3115, allocations: 0.7769 MB / 476.7 MB, free: 5.172 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.3129, allocations: 1.284 MB / 478 MB, free: 3.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002629/0.3156, allocations: 2.214 MB / 480.2 MB, free: 1.219 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/0.3156, allocations: 4 kB / 480.2 MB, free: 1.215 MB / 346.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003804/0.3194, allocations: 2.482 MB / 482.7 MB, free: 14.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.3194, allocations: 14.66 kB / 482.7 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.328e-05/0.3195, allocations: 16 kB / 482.7 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006044/0.3201, allocations: 243.6 kB / 482.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/0.3215, allocations: 415.3 kB / 483.3 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002342/0.3238, allocations: 2.998 MB / 486.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/0.3251, allocations: 127.8 kB / 486.5 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/0.3253, allocations: 68 kB / 486.5 MB, free: 10.57 MB / 362.7 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.001256/0.3265, allocations: 0.8179 MB / 487.4 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003892/0.3269, allocations: 189.7 kB / 487.5 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003226/0.3302, allocations: 2.054 MB / 489.6 MB, free: 7.473 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.3302, allocations: 12 kB / 489.6 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.3302, allocations: 0 / 489.6 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.3302, allocations: 7.969 kB / 489.6 MB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007597/0.3378, allocations: 4.759 MB / 494.4 MB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.3378, allocations: 4 kB / 494.4 MB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/0.3389, allocations: 263.6 kB / 494.6 MB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005172/0.3394, allocations: 203.5 kB / 494.8 MB, free: 2.121 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.733e-05/0.3395, allocations: 24 kB / 494.9 MB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.3418, allocations: 2.99 MB / 497.8 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3419, allocations: 0 / 497.8 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01585/0.3577, allocations: 10.69 MB / 0.4966 GB, free: 3.785 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009001/0.3587, allocations: 426.7 kB / 0.497 GB, free: 3.348 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/0.3589, allocations: 24 kB / 0.497 GB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009583/0.3599, allocations: 96.05 kB / 0.4971 GB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.3601, allocations: 88.77 kB / 0.4972 GB, free: 3.145 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.701e-05/0.3602, allocations: 32 kB / 0.4972 GB, free: 3.113 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001818/0.362, allocations: 1.224 MB / 0.4984 GB, free: 1.898 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.362, allocations: 0 / 0.4984 GB, free: 1.898 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001782/0.3638, allocations: 0.6211 MB / 0.499 GB, free: 1.277 MB / 378.7 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.0003936/0.3642, allocations: 187 kB / 0.4992 GB, free: 1.086 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1685/0.5328, allocations: 2.339 MB / 0.5015 GB, free: 91.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.5328, allocations: 2.594 kB / 0.5015 GB, free: 91.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002104/0.5349, allocations: 1.338 MB / 0.5028 GB, free: 91.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002627/0.5376, allocations: 476.7 kB / 0.5033 GB, free: 91.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008631/0.5462, allocations: 6.978 MB / 0.5101 GB, free: 87.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001444/0.5477, allocations: 2.057 MB / 0.5121 GB, free: 86.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001665/0.5494, allocations: 0.5024 MB / 0.5126 GB, free: 86.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004821/0.5499, allocations: 138.3 kB / 0.5127 GB, free: 86.39 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5499, allocations: 0 / 0.5127 GB, free: 86.39 MB / 378.7 MB Notification: Performance of Templates: time 0.03778/0.5877, allocations: 27.22 MB / 0.5393 GB, free: 62.12 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches