Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001733/0.001733, allocations: 69.8 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002087/0.002087, allocations: 162.7 kB / 24.5 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.429/1.429, allocations: 177.2 MB / 204.9 MB, free: 8.984 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.1.0_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=1000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 47.73 kB / 325.6 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08585/0.08739, allocations: 53.35 MB / 379 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03168/0.1191, allocations: 26.6 MB / 405.6 MB, free: 4.859 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01656/0.1356, allocations: 8.573 MB / 414.1 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003595/0.1392, allocations: 222.9 kB / 414.3 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01172/0.151, allocations: 4.843 MB / 419.2 MB, free: 7.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008407/0.1594, allocations: 3.058 MB / 422.2 MB, free: 4.117 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00393/0.1633, allocations: 1.593 MB / 423.8 MB, free: 2.523 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01095/0.1742, allocations: 8.867 MB / 432.7 MB, free: 9.625 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01228/0.1865, allocations: 9.08 MB / 441.8 MB, free: 456 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005627/0.1922, allocations: 4.355 MB / 446.1 MB, free: 12.07 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006662/0.1988, allocations: 4.624 MB / 450.8 MB, free: 7.434 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001544/0.2004, allocations: 1.156 MB / 451.9 MB, free: 6.277 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002746/0.2031, allocations: 1.531 MB / 453.5 MB, free: 4.75 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002188/0.2053, allocations: 2.415 MB / 455.9 MB, free: 2.328 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004278/0.2096, allocations: 3.665 MB / 459.5 MB, free: 14.65 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2019/0.4115, allocations: 15.93 MB / 475.5 MB, free: 30.58 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.4115, allocations: 3.172 kB / 475.5 MB, free: 30.58 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4115, allocations: 0.5938 kB / 475.5 MB, free: 30.58 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003497/0.4118, allocations: 0 / 475.5 MB, free: 30.58 MB / 430.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.02631/0.4382, allocations: 9.878 MB / 485.3 MB, free: 27.7 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.4382, allocations: 11.97 kB / 485.4 MB, free: 27.7 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02875/0.4669, allocations: 5.231 MB / 490.6 MB, free: 27.23 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01037/0.4773, allocations: 5.11 MB / 495.7 MB, free: 26.39 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002922/0.4776, allocations: 0.5324 MB / 496.2 MB, free: 26.37 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001588/0.4792, allocations: 0.7066 MB / 496.9 MB, free: 26.36 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01767/0.4969, allocations: 11.58 MB / 0.4966 GB, free: 23.49 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001863/0.4971, allocations: 23.69 kB / 0.4966 GB, free: 23.48 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007572/0.4978, allocations: 296.1 kB / 0.4969 GB, free: 23.26 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003319/0.4981, allocations: 445.1 kB / 0.4973 GB, free: 23.17 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01685/0.515, allocations: 10.81 MB / 0.5079 GB, free: 16.59 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04786/0.5629, allocations: 32.7 MB / 0.5398 GB, free: 15.72 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01322/0.5761, allocations: 7.448 MB / 0.5471 GB, free: 9.512 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004141/0.5802, allocations: 2.436 MB / 0.5495 GB, free: 7.074 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01338/0.5936, allocations: 6.901 MB / 0.5562 GB, free: 280 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.691e-05/0.5937, allocations: 56.56 kB / 0.5563 GB, free: 216 kB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 4.308e-06/0.5937, allocations: 2.719 kB / 0.5563 GB, free: 216 kB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.02173/0.6154, allocations: 10.3 MB / 0.5663 GB, free: 5.969 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002178/0.6176, allocations: 1.87 MB / 0.5681 GB, free: 3.98 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00532/0.6229, allocations: 3.635 MB / 0.5717 GB, free: 360 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002643/0.6232, allocations: 65.7 kB / 0.5718 GB, free: 288 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002715/0.6259, allocations: 3.7 MB / 0.5754 GB, free: 12.57 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008129/0.6267, allocations: 0.8685 MB / 0.5762 GB, free: 11.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/0.6281, allocations: 0.9677 MB / 0.5772 GB, free: 10.74 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.6282, allocations: 301.1 kB / 0.5774 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002971/0.6312, allocations: 1.891 MB / 0.5793 GB, free: 8.547 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005039/0.6362, allocations: 4.451 MB / 0.5836 GB, free: 2.898 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008481/0.6447, allocations: 6.797 MB / 0.5903 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.345e-05/0.6447, allocations: 24 kB / 0.5903 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01189/0.6566, allocations: 6.976 MB / 0.5971 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.463e-05/0.6567, allocations: 42.5 kB / 0.5972 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001024/0.6568, allocations: 88 kB / 0.5972 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002036/0.6588, allocations: 0.7329 MB / 0.598 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003588/0.6624, allocations: 1.127 MB / 0.5991 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007924/0.6703, allocations: 5.412 MB / 0.6043 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003321/0.6736, allocations: 315.6 kB / 0.6046 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003985/0.674, allocations: 280 kB / 0.6049 GB, free: 12.82 MB / 0.5137 GB 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.003891/0.6779, allocations: 2.518 MB / 0.6074 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007206/0.6787, allocations: 377.6 kB / 0.6077 GB, free: 10 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007851/0.6865, allocations: 4.232 MB / 0.6119 GB, free: 5.77 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.211e-05/0.6865, allocations: 24 kB / 0.6119 GB, free: 5.746 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/0.6865, allocations: 8 kB / 0.6119 GB, free: 5.738 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.649e-05/0.6866, allocations: 15.33 kB / 0.6119 GB, free: 5.727 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02221/0.7088, allocations: 12.66 MB / 0.6243 GB, free: 8.992 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-05/0.7088, allocations: 12 kB / 0.6243 GB, free: 8.98 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001959/0.7108, allocations: 492.5 kB / 0.6248 GB, free: 8.531 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002096/0.7129, allocations: 0.6937 MB / 0.6254 GB, free: 7.828 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001746/0.713, allocations: 63.98 kB / 0.6255 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009992/0.723, allocations: 7.128 MB / 0.6325 GB, free: 472 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001896/0.7249, allocations: 1.813 MB / 0.6342 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01077/0.7357, allocations: 6.731 MB / 0.6408 GB, free: 7.578 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001857/0.7376, allocations: 0.7251 MB / 0.6415 GB, free: 6.852 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004198/0.738, allocations: 63.92 kB / 0.6416 GB, free: 6.789 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001733/0.7397, allocations: 163.9 kB / 0.6417 GB, free: 6.629 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004073/0.7401, allocations: 232.3 kB / 0.6419 GB, free: 6.41 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001944/0.7403, allocations: 91.98 kB / 0.642 GB, free: 6.32 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003456/0.7438, allocations: 2.272 MB / 0.6442 GB, free: 4.062 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.7438, allocations: 0 / 0.6442 GB, free: 4.062 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004374/0.7481, allocations: 1.293 MB / 0.6455 GB, free: 2.77 MB / 0.545 GB 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.0004213/0.7486, allocations: 228.1 kB / 0.6457 GB, free: 2.57 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007992/0.7565, allocations: 4.82 MB / 0.6504 GB, free: 14 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/0.7566, allocations: 4 kB / 0.6504 GB, free: 14 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003833/0.7604, allocations: 2.187 MB / 0.6526 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004318/0.7647, allocations: 0.8754 MB / 0.6534 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.021/0.7857, allocations: 12.52 MB / 0.6657 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004939/0.7906, allocations: 4.012 MB / 0.6696 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003843/0.7945, allocations: 1.338 MB / 0.6709 GB, free: 8.898 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008585/0.7953, allocations: 292.4 kB / 0.6712 GB, free: 8.613 MB / 0.5762 GB Notification: Performance of SimCode: time 1.042e-06/0.7954, allocations: 2.516 kB / 0.6712 GB, free: 8.613 MB / 0.5762 GB Notification: Performance of Templates: time 0.256/1.051, allocations: 48.38 MB / 0.7184 GB, free: 196.6 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.037878909963183]