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.001477/0.001476, allocations: 107.2 kB / 18.34 MB, free: 4.699 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.001233/0.001233, allocations: 192.1 kB / 19.28 MB, free: 3.766 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.327/1.327, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.00171/0.00171, allocations: 51.92 kB / 282.1 MB, free: 2.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07489/0.07662, allocations: 46.63 MB / 328.7 MB, free: 3.715 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02902/0.1057, allocations: 30.23 MB / 359 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01564/0.1214, allocations: 8.647 MB / 367.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006014/0.1274, allocations: 167.5 kB / 367.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01106/0.1385, allocations: 4.891 MB / 372.7 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009391/0.148, allocations: 2.949 MB / 375.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004726/0.1527, allocations: 1.617 MB / 377.3 MB, free: 3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1654/0.3181, allocations: 8.693 MB / 385.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01923/0.3374, allocations: 12.84 MB / 398.8 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006951/0.3444, allocations: 4.22 MB / 403 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007739/0.3521, allocations: 4.727 MB / 407.7 MB, free: 7.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002947/0.3551, allocations: 1.163 MB / 408.9 MB, free: 7.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004507/0.3596, allocations: 1.525 MB / 410.4 MB, free: 7.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003108/0.3628, allocations: 2.411 MB / 412.8 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007063/0.3698, allocations: 4.67 MB / 417.5 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01507/0.3849, allocations: 15.75 MB / 433.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.385, allocations: 4 kB / 433.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.385, allocations: 0 / 433.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003287/0.3853, allocations: 0 / 433.3 MB, free: 3.625 MB / 334.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.02549/0.4108, allocations: 9.745 MB / 443 MB, free: 9.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.4109, allocations: 12.03 kB / 443 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02828/0.4392, allocations: 5.271 MB / 448.3 MB, free: 4.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009815/0.449, allocations: 4.696 MB / 453 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003804/0.4494, allocations: 0.5287 MB / 453.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001742/0.4512, allocations: 0.712 MB / 454.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02043/0.4716, allocations: 11.32 MB / 465.5 MB, free: 3.496 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001637/0.4718, allocations: 23.67 kB / 465.6 MB, free: 3.477 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007417/0.4726, allocations: 298.9 kB / 465.9 MB, free: 3.195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004625/0.473, allocations: 447 kB / 466.3 MB, free: 2.758 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01817/0.4912, allocations: 10.81 MB / 477.1 MB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05539/0.5466, allocations: 37.58 MB / 0.5026 GB, free: 1.887 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01892/0.5656, allocations: 28.11 MB / 0.5301 GB, free: 1.965 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1506/0.7162, allocations: 2.642 MB / 0.5326 GB, free: 152.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01425/0.7305, allocations: 7.903 MB / 0.5404 GB, free: 150 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/0.7306, allocations: 61.8 kB / 0.5404 GB, free: 149.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.378e-06/0.7306, allocations: 0 / 0.5404 GB, free: 149.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01756/0.7482, allocations: 10.36 MB / 0.5505 GB, free: 145.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00148/0.7497, allocations: 2.007 MB / 0.5525 GB, free: 143.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004678/0.7544, allocations: 3.824 MB / 0.5562 GB, free: 142.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002578/0.7546, allocations: 61.61 kB / 0.5563 GB, free: 142.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001499/0.7561, allocations: 3.549 MB / 0.5598 GB, free: 139.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005227/0.7567, allocations: 0.8276 MB / 0.5606 GB, free: 138.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001077/0.7578, allocations: 0.9582 MB / 0.5615 GB, free: 138.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.064e-05/0.7578, allocations: 305.1 kB / 0.5618 GB, free: 138.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002273/0.7601, allocations: 1.886 MB / 0.5636 GB, free: 137.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003037/0.7631, allocations: 4.393 MB / 0.5679 GB, free: 133.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005544/0.7687, allocations: 6.782 MB / 0.5746 GB, free: 127.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.52e-05/0.7687, allocations: 27.02 kB / 0.5746 GB, free: 127.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009156/0.7779, allocations: 6.981 MB / 0.5814 GB, free: 124.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.946e-05/0.778, allocations: 44 kB / 0.5814 GB, free: 124.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.872e-05/0.7781, allocations: 84.84 kB / 0.5815 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/0.7798, allocations: 0.7398 MB / 0.5822 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003065/0.7829, allocations: 1.117 MB / 0.5833 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005604/0.7885, allocations: 5.64 MB / 0.5888 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003483/0.792, allocations: 313.5 kB / 0.5891 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003802/0.7924, allocations: 272.2 kB / 0.5894 GB, free: 117.1 MB / 446.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.003225/0.7956, allocations: 2.524 MB / 0.5919 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006772/0.7963, allocations: 383.3 kB / 0.5922 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005875/0.8022, allocations: 4.272 MB / 0.5964 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/0.8022, allocations: 27.94 kB / 0.5964 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.8022, allocations: 8 kB / 0.5964 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.911e-05/0.8023, allocations: 11.95 kB / 0.5964 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01767/0.82, allocations: 14.28 MB / 0.6104 GB, free: 95.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/0.82, allocations: 11.98 kB / 0.6104 GB, free: 95.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001614/0.8216, allocations: 479.2 kB / 0.6109 GB, free: 95.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001702/0.8233, allocations: 0.6969 MB / 0.6115 GB, free: 94.36 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001496/0.8235, allocations: 67.98 kB / 0.6116 GB, free: 94.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006992/0.8305, allocations: 7.497 MB / 0.6189 GB, free: 86.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001238/0.8317, allocations: 1.957 MB / 0.6208 GB, free: 84.42 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007886/0.8396, allocations: 6.74 MB / 0.6274 GB, free: 77.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002199/0.8419, allocations: 0.8006 MB / 0.6282 GB, free: 76.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001016/0.8429, allocations: 60 kB / 0.6283 GB, free: 76.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001911/0.8448, allocations: 163.8 kB / 0.6284 GB, free: 76.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000388/0.8452, allocations: 225.5 kB / 0.6286 GB, free: 76.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001574/0.8454, allocations: 87.92 kB / 0.6287 GB, free: 76.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002964/0.8483, allocations: 2.513 MB / 0.6312 GB, free: 73.56 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8484, allocations: 0 / 0.6312 GB, free: 73.56 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003844/0.8522, allocations: 1.288 MB / 0.6324 GB, free: 72.27 MB / 446.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.0003673/0.8526, allocations: 228.8 kB / 0.6326 GB, free: 72.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005987/0.8586, allocations: 5.167 MB / 0.6377 GB, free: 66.83 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.8586, allocations: 1.562 kB / 0.6377 GB, free: 66.83 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002806/0.8614, allocations: 2.417 MB / 0.64 GB, free: 64.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003547/0.865, allocations: 0.9867 MB / 0.641 GB, free: 63.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01607/0.881, allocations: 12.32 MB / 0.653 GB, free: 50.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003384/0.8845, allocations: 4.496 MB / 0.6574 GB, free: 46.37 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003409/0.8879, allocations: 1.36 MB / 0.6588 GB, free: 45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007002/0.8886, allocations: 295.4 kB / 0.659 GB, free: 44.72 MB / 446.1 MB Notification: Performance of SimCode: time 9.01e-07/0.8886, allocations: 0 / 0.659 GB, free: 44.72 MB / 446.1 MB Notification: Performance of Templates: time 0.2213/1.11, allocations: 51.43 MB / 0.7093 GB, free: 136.4 MB / 446.1 MB 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 -s cvode -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/jenkins1/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/jenkins1/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