Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009624/0.0009667, allocations: 191.8 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.5 MB / 244.7 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009299/0.0009299, allocations: 97.33 kB / 296.8 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002235/0.0002236, allocations: 4 kB / 356.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2212, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02811/0.2493, allocations: 35.14 MB / 443.2 MB, free: 8.438 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02181/0.2712, allocations: 9.861 MB / 453.1 MB, free: 14.56 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009135/0.2804, allocations: 279.1 kB / 453.4 MB, free: 14.29 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00727/0.2877, allocations: 1.67 MB / 455 MB, free: 12.6 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01183/0.2996, allocations: 2.821 MB / 457.8 MB, free: 9.773 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006316/0.3059, allocations: 1.542 MB / 459.4 MB, free: 8.246 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02026/0.3262, allocations: 13.95 MB / 473.3 MB, free: 10.24 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0403/0.3666, allocations: 23.66 MB / 497 MB, free: 2.449 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008562/0.3752, allocations: 4.789 MB / 0.49 GB, free: 13.64 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01001/0.3852, allocations: 5.677 MB / 0.4956 GB, free: 7.941 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003169/0.3884, allocations: 0.7578 MB / 0.4963 GB, free: 7.184 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005495/0.3939, allocations: 1.164 MB / 0.4974 GB, free: 6.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003958/0.3979, allocations: 2.445 MB / 0.4998 GB, free: 3.566 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.2185/0.6165, allocations: 5.718 MB / 0.5054 GB, free: 29.24 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01997/0.6365, allocations: 21.71 MB / 0.5266 GB, free: 21.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.6365, allocations: 5.375 kB / 0.5266 GB, free: 21.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.6365, allocations: 0 / 0.5266 GB, free: 21.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007793/0.6373, allocations: 0 / 0.5266 GB, free: 21.59 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03216/0.6695, allocations: 12.45 MB / 0.5388 GB, free: 15.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.6696, allocations: 7.625 kB / 0.5388 GB, free: 15.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03024/0.6998, allocations: 6.155 MB / 0.5448 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01626/0.7161, allocations: 7.813 MB / 0.5524 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00105/0.7172, allocations: 0.9211 MB / 0.5533 GB, free: 10.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004854/0.7221, allocations: 1.2 MB / 0.5545 GB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04538/0.7675, allocations: 18.57 MB / 0.5726 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005727/0.7681, allocations: 19.31 kB / 0.5726 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003789/0.7719, allocations: 0.4886 MB / 0.5731 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007549/0.7726, allocations: 0.6433 MB / 0.5737 GB, free: 14.92 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03892/0.8116, allocations: 16.66 MB / 0.59 GB, free: 1.016 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1094/0.9211, allocations: 59.75 MB / 0.6484 GB, free: 4.746 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2485/1.17, allocations: 33.17 MB / 0.6808 GB, free: 168.6 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007556/1.177, allocations: 3.759 MB / 0.6844 GB, free: 168.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01714/1.194, allocations: 8.886 MB / 0.6931 GB, free: 165.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/1.194, allocations: 69 kB / 0.6932 GB, free: 165.2 MB / 490.7 MB Notification: Performance of pre-optimization done (n=349): time 5.29e-06/1.194, allocations: 3.844 kB / 0.6932 GB, free: 165.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=389): time 0.03498/1.229, allocations: 17.54 MB / 0.7103 GB, free: 157.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/1.229, allocations: 97.22 kB / 0.7104 GB, free: 157.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007808/1.237, allocations: 4.991 MB / 0.7153 GB, free: 155.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008291/1.238, allocations: 90.77 kB / 0.7154 GB, free: 155.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002911/1.241, allocations: 5.454 MB / 0.7207 GB, free: 151.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001565/1.243, allocations: 1.355 MB / 0.722 GB, free: 150.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004217/1.243, allocations: 132 kB / 0.7221 GB, free: 150.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003174/1.243, allocations: 0.5767 MB / 0.7227 GB, free: 149.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004286/1.248, allocations: 2.876 MB / 0.7255 GB, free: 147.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005558/1.253, allocations: 5.857 MB / 0.7312 GB, free: 140.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01052/1.264, allocations: 9.413 MB / 0.7404 GB, free: 130.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.641e-05/1.264, allocations: 28 kB / 0.7404 GB, free: 130.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01726/1.281, allocations: 9.789 MB / 0.75 GB, free: 121.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/1.281, allocations: 48 kB / 0.75 GB, free: 121.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001753/1.282, allocations: 100 kB / 0.7501 GB, free: 121.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002465/1.284, allocations: 0.9378 MB / 0.7511 GB, free: 120.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005795/1.29, allocations: 1.585 MB / 0.7526 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01032/1.3, allocations: 9.481 MB / 0.7619 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00626/1.306, allocations: 415 kB / 0.7623 GB, free: 108.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001505/1.308, allocations: 348 kB / 0.7626 GB, free: 108 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0104/1.318, allocations: 4.247 MB / 0.7667 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00177/1.32, allocations: 0.5178 MB / 0.7672 GB, free: 103.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01111/1.331, allocations: 6.477 MB / 0.7736 GB, free: 96.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.249e-05/1.331, allocations: 36 kB / 0.7736 GB, free: 96.66 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/1.331, allocations: 12 kB / 0.7736 GB, free: 96.65 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.071e-05/1.331, allocations: 19.92 kB / 0.7736 GB, free: 96.63 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02986/1.361, allocations: 15.7 MB / 0.789 GB, free: 80.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/1.361, allocations: 0 / 0.789 GB, free: 80.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003085/1.365, allocations: 0.7493 MB / 0.7897 GB, free: 80.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001982/1.367, allocations: 0.7865 MB / 0.7905 GB, free: 79.34 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004571/1.367, allocations: 83.97 kB / 0.7906 GB, free: 79.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007996/1.375, allocations: 8.665 MB / 0.799 GB, free: 70.19 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/1.375, allocations: 4.031 kB / 0.799 GB, free: 70.19 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01302/1.388, allocations: 9.451 MB / 0.8082 GB, free: 60.62 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002945/1.391, allocations: 1.068 MB / 0.8093 GB, free: 59.53 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001128/1.392, allocations: 71.94 kB / 0.8094 GB, free: 59.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00259/1.395, allocations: 227.8 kB / 0.8096 GB, free: 59.24 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005262/1.395, allocations: 262.8 kB / 0.8098 GB, free: 58.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002445/1.396, allocations: 112 kB / 0.8099 GB, free: 58.87 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005429/1.401, allocations: 3.319 MB / 0.8132 GB, free: 55.57 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.401, allocations: 0 / 0.8132 GB, free: 55.57 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008588/1.41, allocations: 1.888 MB / 0.815 GB, free: 53.68 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * 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: 3 * 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: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001055/1.411, allocations: 281.1 kB / 0.8153 GB, free: 53.41 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01172/1.422, allocations: 7.595 MB / 0.8227 GB, free: 45.74 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/1.423, allocations: 4.062 kB / 0.8227 GB, free: 45.74 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006373/1.429, allocations: 3.553 MB / 0.8262 GB, free: 42.11 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01079/1.44, allocations: 1.23 MB / 0.8274 GB, free: 40.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04559/1.485, allocations: 23.65 MB / 0.8505 GB, free: 17.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2161/1.702, allocations: 7.101 MB / 0.8574 GB, free: 155 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002252/1.704, allocations: 459.6 kB / 0.8578 GB, free: 155 MB / 490.7 MB Notification: Performance of SimCode: time 1.293e-06/1.704, allocations: 0.625 kB / 0.8579 GB, free: 155 MB / 490.7 MB Notification: Performance of Templates: time 0.8664/2.57, allocations: 459.5 MB / 1.307 GB, free: 95.05 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches