Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001612/0.001612, allocations: 196 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 226.6 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007731/0.0007733, allocations: 95.53 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002269/0.000227, allocations: 8 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1804, allocations: 51.28 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.006647/0.1871, allocations: 9.027 MB / 417.1 MB, free: 18.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004077/0.1912, allocations: 3.09 MB / 420.2 MB, free: 15.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007235/0.1919, allocations: 51.75 kB / 420.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.193, allocations: 0.5591 MB / 420.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001337/0.1943, allocations: 0.7342 MB / 421.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005115/0.1948, allocations: 263.5 kB / 421.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001867/0.1967, allocations: 3.07 MB / 424.8 MB, free: 10.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001683/0.1984, allocations: 2.088 MB / 426.9 MB, free: 8.719 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009386/0.1994, allocations: 1.008 MB / 427.9 MB, free: 7.707 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001103/0.2005, allocations: 1.381 MB / 429.3 MB, free: 6.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002128/0.2007, allocations: 148 kB / 429.5 MB, free: 6.176 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005067/0.2012, allocations: 263.8 kB / 429.7 MB, free: 5.918 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005082/0.2017, allocations: 0.771 MB / 430.5 MB, free: 5.145 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008349/0.2026, allocations: 1.296 MB / 431.8 MB, free: 3.836 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001966/0.2045, allocations: 3.744 MB / 435.5 MB, free: 84 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2046, allocations: 0 / 435.5 MB, free: 84 kB / 298.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2046, allocations: 0 / 435.5 MB, free: 84 kB / 298.7 MB Notification: Performance of Transformations before backend: time 4.113e-05/0.2046, allocations: 0 / 435.5 MB, free: 84 kB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.004601/0.2092, allocations: 2.789 MB / 438.3 MB, free: 13.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.2093, allocations: 8.031 kB / 438.3 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009643/0.2102, allocations: 373.2 kB / 438.7 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002509/0.2127, allocations: 1.698 MB / 440.4 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.2129, allocations: 189 kB / 440.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003127/0.2132, allocations: 231.9 kB / 440.8 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004809/0.2181, allocations: 3.137 MB / 443.9 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.135e-05/0.2181, allocations: 0 / 443.9 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000205/0.2183, allocations: 92 kB / 444 MB, free: 7.367 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001054/0.2184, allocations: 108.6 kB / 444.1 MB, free: 7.258 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004358/0.2228, allocations: 2.708 MB / 446.8 MB, free: 4.535 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01337/0.2362, allocations: 9.798 MB / 456.6 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002561/0.2388, allocations: 2.165 MB / 458.8 MB, free: 8.109 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001821/0.2406, allocations: 1.132 MB / 459.9 MB, free: 6.98 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002753/0.2409, allocations: 207.2 kB / 460.1 MB, free: 6.742 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.241, allocations: 47.56 kB / 460.2 MB, free: 6.688 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 3.446e-06/0.241, allocations: 3.938 kB / 460.2 MB, free: 6.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=131): time 0.01313/0.2541, allocations: 6.954 MB / 467.1 MB, free: 15.56 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.2542, allocations: 68.72 kB / 467.2 MB, free: 15.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002258/0.2564, allocations: 1.731 MB / 468.9 MB, free: 13.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.171e-05/0.2565, allocations: 45.7 kB / 469 MB, free: 13.7 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007545/0.2573, allocations: 1.159 MB / 470.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003247/0.2576, allocations: 449.5 kB / 470.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-05/0.2577, allocations: 32 kB / 470.6 MB, free: 12.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.2579, allocations: 373.8 kB / 471 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.2591, allocations: 0.8003 MB / 471.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.2606, allocations: 1.213 MB / 473 MB, free: 9.484 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002818/0.2634, allocations: 2.109 MB / 475.1 MB, free: 7.207 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.2634, allocations: 4 kB / 475.1 MB, free: 7.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004089/0.2675, allocations: 2.69 MB / 477.8 MB, free: 4.473 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.2676, allocations: 8 kB / 477.8 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/0.2676, allocations: 12 kB / 477.8 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000925/0.2685, allocations: 419.3 kB / 478.2 MB, free: 4.031 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.2698, allocations: 363.3 kB / 478.6 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005939/0.2758, allocations: 6.482 MB / 485.1 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.2769, allocations: 111.9 kB / 485.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.2771, allocations: 60 kB / 485.2 MB, free: 12.62 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001248/0.2783, allocations: 0.8017 MB / 486 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002616/0.2786, allocations: 189.6 kB / 486.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003761/0.2823, allocations: 2.399 MB / 488.6 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.2824, allocations: 16 kB / 488.6 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.2824, allocations: 7.938 kB / 488.6 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.2824, allocations: 3.984 kB / 488.6 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007614/0.29, allocations: 5.148 MB / 493.8 MB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.2901, allocations: 3.938 kB / 493.8 MB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000973/0.291, allocations: 243.6 kB / 494 MB, free: 3.633 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001061/0.2921, allocations: 450.3 kB / 494.5 MB, free: 3.184 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.723e-05/0.2922, allocations: 35.98 kB / 494.5 MB, free: 3.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00702/0.2992, allocations: 7.949 MB / 0.4907 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.2993, allocations: 11.94 kB / 0.4907 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005123/0.3044, allocations: 3.535 MB / 0.4941 GB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007898/0.3052, allocations: 442.6 kB / 0.4946 GB, free: 6.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.3054, allocations: 40.11 kB / 0.4946 GB, free: 6.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008743/0.3063, allocations: 91.91 kB / 0.4947 GB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002539/0.3066, allocations: 116.7 kB / 0.4948 GB, free: 6.324 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-05/0.3067, allocations: 43.98 kB / 0.4948 GB, free: 6.281 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001667/0.3083, allocations: 1.187 MB / 0.496 GB, free: 5.102 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3083, allocations: 0 / 0.496 GB, free: 5.102 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001501/0.3098, allocations: 0.504 MB / 0.4965 GB, free: 4.598 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 1,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003394/0.3102, allocations: 194.9 kB / 0.4967 GB, free: 4.398 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003592/0.3138, allocations: 2.473 MB / 0.4991 GB, free: 1.867 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3138, allocations: 0 / 0.4991 GB, free: 1.867 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002337/0.3162, allocations: 1.621 MB / 0.5007 GB, free: 196 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1427/0.4589, allocations: 447.8 kB / 0.5011 GB, free: 92.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007214/0.4661, allocations: 5.966 MB / 0.5069 GB, free: 89.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001357/0.4675, allocations: 1.956 MB / 0.5088 GB, free: 88.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005095/0.468, allocations: 134.6 kB / 0.509 GB, free: 88.88 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.468, allocations: 2.406 kB / 0.509 GB, free: 88.88 MB / 378.7 MB Notification: Performance of Templates: time 0.05649/0.5245, allocations: 78.87 MB / 0.586 GB, free: 14.86 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches