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.001347/0.001347, allocations: 82.67 kB / 20.68 MB, free: 1.027 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.001558/0.001558, allocations: 171.9 kB / 23.96 MB, free: 4.148 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.426/1.426, allocations: 177.1 MB / 204.3 MB, free: 9.172 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 1.503e-06/1.503e-06, allocations: 0 / 325.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.903e-05/3.053e-05, allocations: 3.469 kB / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03497/0.035, allocations: 26.66 MB / 351.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02182/0.05682, allocations: 8.573 MB / 360.3 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006925/0.06375, allocations: 222.9 kB / 360.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01388/0.07763, allocations: 4.872 MB / 365.4 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01212/0.08975, allocations: 3.126 MB / 368.5 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005611/0.09536, allocations: 1.6 MB / 370.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01373/0.1091, allocations: 9.187 MB / 379.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01695/0.126, allocations: 9.118 MB / 388.5 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01158/0.1376, allocations: 6.368 MB / 394.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007441/0.1451, allocations: 4.077 MB / 398.9 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002693/0.1478, allocations: 1.16 MB / 400.1 MB, free: 9.871 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004953/0.1527, allocations: 1.542 MB / 401.6 MB, free: 8.328 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002918/0.1556, allocations: 2.47 MB / 404.1 MB, free: 5.852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007177/0.1628, allocations: 3.142 MB / 407.2 MB, free: 2.703 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02155/0.1844, allocations: 16.05 MB / 423.3 MB, free: 2.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.1844, allocations: 0 / 423.3 MB, free: 2.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1844, allocations: 0 / 423.3 MB, free: 2.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004242/0.1848, allocations: 4 kB / 423.3 MB, free: 2.609 MB / 382.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.02808/0.2129, allocations: 9.791 MB / 433.1 MB, free: 8.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.2129, allocations: 8.031 kB / 433.1 MB, free: 8.723 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03045/0.2434, allocations: 5.236 MB / 438.3 MB, free: 3.477 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01217/0.2555, allocations: 5.121 MB / 443.4 MB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005768/0.2561, allocations: 0.526 MB / 443.9 MB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002677/0.2588, allocations: 0.7108 MB / 444.7 MB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02643/0.2852, allocations: 11.58 MB / 456.2 MB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001763/0.2854, allocations: 15.95 kB / 456.2 MB, free: 1.293 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008982/0.2863, allocations: 300 kB / 456.5 MB, free: 1 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005101/0.2868, allocations: 454.9 kB / 457 MB, free: 0.5547 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02087/0.3077, allocations: 10.81 MB / 467.8 MB, free: 5.73 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2102/0.5179, allocations: 32.69 MB / 0.4888 GB, free: 100.8 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01085/0.5288, allocations: 7.438 MB / 0.496 GB, free: 97.61 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003068/0.5318, allocations: 2.44 MB / 0.4984 GB, free: 96.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01015/0.542, allocations: 6.896 MB / 0.5051 GB, free: 92 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.542, allocations: 59.34 kB / 0.5052 GB, free: 91.93 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 4.588e-06/0.542, allocations: 0 / 0.5052 GB, free: 91.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.0166/0.5586, allocations: 10.29 MB / 0.5152 GB, free: 81.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001462/0.5601, allocations: 1.863 MB / 0.5171 GB, free: 79.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004092/0.5642, allocations: 3.63 MB / 0.5206 GB, free: 76.47 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002922/0.5645, allocations: 69.7 kB / 0.5207 GB, free: 76.39 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001294/0.5657, allocations: 3.684 MB / 0.5243 GB, free: 73 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004899/0.5662, allocations: 0.8519 MB / 0.5251 GB, free: 72.15 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/0.5673, allocations: 0.9535 MB / 0.526 GB, free: 71.19 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.042e-05/0.5673, allocations: 305.1 kB / 0.5263 GB, free: 70.89 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002108/0.5694, allocations: 1.895 MB / 0.5282 GB, free: 68.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002925/0.5723, allocations: 4.446 MB / 0.5325 GB, free: 63.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005603/0.5779, allocations: 6.804 MB / 0.5392 GB, free: 55.28 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.805e-05/0.578, allocations: 26.44 kB / 0.5392 GB, free: 55.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009765/0.5877, allocations: 6.972 MB / 0.546 GB, free: 48.27 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.908e-05/0.5878, allocations: 44.06 kB / 0.546 GB, free: 48.22 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.72e-05/0.5879, allocations: 88 kB / 0.5461 GB, free: 48.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001729/0.5896, allocations: 0.7297 MB / 0.5468 GB, free: 47.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003183/0.5928, allocations: 1.131 MB / 0.5479 GB, free: 46.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005804/0.5986, allocations: 5.417 MB / 0.5532 GB, free: 40.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00354/0.6021, allocations: 319.4 kB / 0.5535 GB, free: 40.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004298/0.6026, allocations: 276 kB / 0.5538 GB, free: 40.17 MB / 430.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.003204/0.6058, allocations: 2.522 MB / 0.5563 GB, free: 37.63 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007042/0.6065, allocations: 381.5 kB / 0.5566 GB, free: 37.26 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006082/0.6125, allocations: 4.226 MB / 0.5608 GB, free: 33 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/0.6126, allocations: 24 kB / 0.5608 GB, free: 32.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.6126, allocations: 8 kB / 0.5608 GB, free: 32.97 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.088e-05/0.6126, allocations: 15.94 kB / 0.5608 GB, free: 32.96 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01685/0.6294, allocations: 12.66 MB / 0.5732 GB, free: 20.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/0.6295, allocations: 12 kB / 0.5732 GB, free: 20.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/0.6311, allocations: 483.2 kB / 0.5736 GB, free: 19.62 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001772/0.6329, allocations: 0.6937 MB / 0.5743 GB, free: 18.92 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000145/0.6331, allocations: 67.98 kB / 0.5744 GB, free: 18.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007005/0.6401, allocations: 7.11 MB / 0.5813 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001233/0.6413, allocations: 1.811 MB / 0.5831 GB, free: 9.621 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008124/0.6494, allocations: 6.706 MB / 0.5896 GB, free: 2.633 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00161/0.651, allocations: 0.7198 MB / 0.5903 GB, free: 1.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004587/0.6515, allocations: 67.73 kB / 0.5904 GB, free: 1.848 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00171/0.6532, allocations: 163.8 kB / 0.5906 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003961/0.6536, allocations: 237.4 kB / 0.5908 GB, free: 1.457 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/0.6538, allocations: 91.98 kB / 0.5909 GB, free: 1.367 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003018/0.6568, allocations: 2.27 MB / 0.5931 GB, free: 15.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6568, allocations: 0 / 0.5931 GB, free: 15.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004511/0.6613, allocations: 1.297 MB / 0.5944 GB, free: 13.82 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.0005021/0.6618, allocations: 230.6 kB / 0.5946 GB, free: 13.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008244/0.67, allocations: 4.826 MB / 0.5993 GB, free: 8.746 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/0.6701, allocations: 4 kB / 0.5993 GB, free: 8.742 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003838/0.6739, allocations: 2.197 MB / 0.6014 GB, free: 6.523 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004386/0.6783, allocations: 0.8596 MB / 0.6023 GB, free: 5.684 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02118/0.6995, allocations: 12.47 MB / 0.6145 GB, free: 9.012 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004875/0.7043, allocations: 4.012 MB / 0.6184 GB, free: 4.945 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003824/0.7082, allocations: 1.322 MB / 0.6197 GB, free: 3.617 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008394/0.709, allocations: 304.4 kB / 0.62 GB, free: 3.32 MB / 462.1 MB Notification: Performance of SimCode: time 9.72e-07/0.709, allocations: 0 / 0.62 GB, free: 3.32 MB / 462.1 MB Notification: Performance of Templates: time 0.2483/0.9573, allocations: 48 MB / 0.6668 GB, free: 139.2 MB / 478.1 MB " [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 -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/jenkins/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/jenkins/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: 6.878993451595306]