Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 110.4 kB / 17.73 MB, free: 5.336 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.001772/0.001772, allocations: 187.1 kB / 18.66 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.358/1.358, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001095, allocations: 47.94 kB / 328.6 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0833/0.08441, allocations: 46.61 MB / 375.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1797/0.2642, allocations: 30.24 MB / 405.4 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01884/0.2831, allocations: 8.636 MB / 414 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005552/0.2886, allocations: 165.5 kB / 414.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01187/0.3006, allocations: 4.903 MB / 419.1 MB, free: 28 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009372/0.31, allocations: 2.952 MB / 422.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004662/0.3146, allocations: 1.612 MB / 423.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01312/0.3278, allocations: 8.71 MB / 432.4 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01939/0.3472, allocations: 12.83 MB / 445.2 MB, free: 9.504 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006546/0.3538, allocations: 4.238 MB / 449.4 MB, free: 5.254 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007186/0.361, allocations: 4.733 MB / 454.2 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002611/0.3636, allocations: 1.164 MB / 455.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004322/0.368, allocations: 1.531 MB / 456.9 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00272/0.3707, allocations: 2.4 MB / 459.3 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006075/0.3768, allocations: 4.676 MB / 463.9 MB, free: 6.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01672/0.3935, allocations: 15.72 MB / 479.7 MB, free: 6.934 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3936, allocations: 0 / 479.7 MB, free: 6.934 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3936, allocations: 0 / 479.7 MB, free: 6.934 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000358/0.3939, allocations: 4 kB / 479.7 MB, free: 6.93 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02568/0.4196, allocations: 9.751 MB / 489.4 MB, free: 13.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.4197, allocations: 16.03 kB / 489.4 MB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02895/0.4487, allocations: 5.274 MB / 494.7 MB, free: 7.781 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01022/0.4589, allocations: 4.691 MB / 499.4 MB, free: 3.008 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004878/0.4594, allocations: 0.5299 MB / 499.9 MB, free: 2.477 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002237/0.4617, allocations: 0.7107 MB / 0.4889 GB, free: 1.766 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02097/0.4827, allocations: 11.31 MB / 0.5 GB, free: 6.375 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001839/0.4829, allocations: 19.89 kB / 0.5 GB, free: 6.355 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007843/0.4837, allocations: 296 kB / 0.5003 GB, free: 6.066 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004078/0.4841, allocations: 443 kB / 0.5007 GB, free: 5.633 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01843/0.5025, allocations: 10.83 MB / 0.5113 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05621/0.5588, allocations: 37.58 MB / 0.548 GB, free: 4.09 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.17/0.7287, allocations: 28.09 MB / 0.5754 GB, free: 116.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00471/0.7335, allocations: 2.665 MB / 0.578 GB, free: 116.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01373/0.7473, allocations: 7.905 MB / 0.5857 GB, free: 113.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.167e-05/0.7473, allocations: 62.61 kB / 0.5858 GB, free: 113.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 4.799e-06/0.7474, allocations: 0 / 0.5858 GB, free: 113.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.01957/0.7669, allocations: 10.36 MB / 0.5959 GB, free: 108.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001558/0.7685, allocations: 2.007 MB / 0.5978 GB, free: 107 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005234/0.7738, allocations: 3.82 MB / 0.6016 GB, free: 105.6 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003718/0.7742, allocations: 67.73 kB / 0.6016 GB, free: 105.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001835/0.776, allocations: 3.546 MB / 0.6051 GB, free: 102.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007378/0.7768, allocations: 0.835 MB / 0.6059 GB, free: 102.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00112/0.7779, allocations: 0.9498 MB / 0.6069 GB, free: 101.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.28e-05/0.7779, allocations: 304.3 kB / 0.6071 GB, free: 101.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002325/0.7803, allocations: 1.892 MB / 0.609 GB, free: 100.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003141/0.7834, allocations: 4.391 MB / 0.6133 GB, free: 96.59 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006019/0.7895, allocations: 6.788 MB / 0.6199 GB, free: 91.12 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.667e-05/0.7896, allocations: 23.59 kB / 0.6199 GB, free: 91.12 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.0117/0.8013, allocations: 6.982 MB / 0.6267 GB, free: 88.05 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.458e-05/0.8014, allocations: 44 kB / 0.6268 GB, free: 88.01 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000119/0.8015, allocations: 88 kB / 0.6269 GB, free: 87.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001758/0.8033, allocations: 0.7357 MB / 0.6276 GB, free: 87.35 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003217/0.8065, allocations: 1.125 MB / 0.6287 GB, free: 86.38 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005734/0.8123, allocations: 5.627 MB / 0.6342 GB, free: 80.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003704/0.816, allocations: 311.1 kB / 0.6345 GB, free: 80.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004924/0.8165, allocations: 279.9 kB / 0.6347 GB, free: 80.22 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * 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 {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003545/0.8201, allocations: 2.522 MB / 0.6372 GB, free: 77.69 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008039/0.8209, allocations: 391.2 kB / 0.6376 GB, free: 77.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005992/0.8269, allocations: 4.267 MB / 0.6418 GB, free: 73.01 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.8269, allocations: 25.59 kB / 0.6418 GB, free: 72.98 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.8269, allocations: 8.875 kB / 0.6418 GB, free: 72.98 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.96e-05/0.827, allocations: 11.95 kB / 0.6418 GB, free: 72.96 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01803/0.845, allocations: 14.28 MB / 0.6557 GB, free: 58.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-05/0.845, allocations: 12 kB / 0.6558 GB, free: 58.49 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001673/0.8467, allocations: 483 kB / 0.6562 GB, free: 58.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001791/0.8485, allocations: 0.6933 MB / 0.6569 GB, free: 57.32 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001531/0.8487, allocations: 71.97 kB / 0.657 GB, free: 57.25 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007113/0.8558, allocations: 7.483 MB / 0.6643 GB, free: 49.48 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00124/0.8571, allocations: 1.962 MB / 0.6662 GB, free: 47.38 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008654/0.8657, allocations: 6.742 MB / 0.6728 GB, free: 40.36 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002376/0.8681, allocations: 0.7928 MB / 0.6735 GB, free: 39.54 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005402/0.8687, allocations: 60 kB / 0.6736 GB, free: 39.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00166/0.8704, allocations: 163.8 kB / 0.6738 GB, free: 39.32 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003551/0.8707, allocations: 225.5 kB / 0.674 GB, free: 39.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/0.8709, allocations: 92.64 kB / 0.6741 GB, free: 39.01 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003102/0.874, allocations: 2.509 MB / 0.6765 GB, free: 36.52 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.874, allocations: 0 / 0.6765 GB, free: 36.52 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004392/0.8784, allocations: 1.289 MB / 0.6778 GB, free: 35.23 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * 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 (241): * Single equations (assignments): 238 * 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 {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004357/0.8789, allocations: 230.2 kB / 0.678 GB, free: 35 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006702/0.8856, allocations: 5.173 MB / 0.683 GB, free: 29.78 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.8856, allocations: 4 kB / 0.683 GB, free: 29.78 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003062/0.8887, allocations: 2.417 MB / 0.6854 GB, free: 27.32 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004074/0.8928, allocations: 0.9846 MB / 0.6864 GB, free: 26.34 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01589/0.9087, allocations: 12.31 MB / 0.6984 GB, free: 13.85 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003469/0.9122, allocations: 4.496 MB / 0.7028 GB, free: 9.309 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00339/0.9156, allocations: 1.356 MB / 0.7041 GB, free: 7.949 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007155/0.9163, allocations: 299.4 kB / 0.7044 GB, free: 7.656 MB / 478.1 MB Notification: Performance of SimCode: time 9.31e-07/0.9163, allocations: 0 / 0.7044 GB, free: 7.656 MB / 478.1 MB Notification: Performance of Templates: time 0.304/1.22, allocations: 53.32 MB / 0.7565 GB, free: 159.8 MB / 0.4981 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches