Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001327/0.001327, allocations: 120.4 kB / 20.43 MB, free: 1.301 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001447/0.001447, allocations: 211.2 kB / 23.74 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 71.89 kB / 377.8 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2542, allocations: 53.41 MB / 431.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03942/0.2937, allocations: 31.17 MB / 462.4 MB, free: 7.336 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02109/0.3147, allocations: 8.927 MB / 471.3 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005876/0.3206, allocations: 222.9 kB / 471.5 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01374/0.3344, allocations: 5.026 MB / 476.6 MB, free: 9.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01015/0.3445, allocations: 3.128 MB / 479.7 MB, free: 5.988 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004964/0.3495, allocations: 1.666 MB / 481.4 MB, free: 4.324 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01338/0.3628, allocations: 8.865 MB / 490.2 MB, free: 11.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01816/0.381, allocations: 9.229 MB / 499.5 MB, free: 2.102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007627/0.3886, allocations: 4.343 MB / 0.492 GB, free: 13.75 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008504/0.3971, allocations: 4.897 MB / 0.4968 GB, free: 8.832 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003404/0.4005, allocations: 1.164 MB / 0.4979 GB, free: 7.668 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004841/0.4054, allocations: 1.562 MB / 0.4994 GB, free: 6.105 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004018/0.4094, allocations: 2.419 MB / 0.5018 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008389/0.4178, allocations: 4.677 MB / 0.5064 GB, free: 14.98 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02247/0.4403, allocations: 15.88 MB / 0.5219 GB, free: 15.05 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.4403, allocations: 4 kB / 0.5219 GB, free: 15.05 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4403, allocations: 0 / 0.5219 GB, free: 15.05 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005511/0.4408, allocations: 0 / 0.5219 GB, free: 15.05 MB / 446.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.03107/0.4719, allocations: 9.9 MB / 0.5315 GB, free: 5.062 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.4719, allocations: 12.03 kB / 0.5316 GB, free: 5.051 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003552/0.4755, allocations: 1.145 MB / 0.5327 GB, free: 3.895 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2304/0.7059, allocations: 5.22 MB / 0.5378 GB, free: 91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01111/0.717, allocations: 5.142 MB / 0.5428 GB, free: 89.1 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004445/0.7174, allocations: 0.535 MB / 0.5433 GB, free: 88.86 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002621/0.72, allocations: 0.7101 MB / 0.544 GB, free: 88.62 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02264/0.7427, allocations: 11.35 MB / 0.5551 GB, free: 83.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002669/0.743, allocations: 27.72 kB / 0.5551 GB, free: 83.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001465/0.7444, allocations: 289.3 kB / 0.5554 GB, free: 83.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003302/0.7447, allocations: 456.1 kB / 0.5558 GB, free: 83.22 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01994/0.7647, allocations: 10.86 MB / 0.5664 GB, free: 73.84 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05283/0.8175, allocations: 36.7 MB / 0.6023 GB, free: 36.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01053/0.8281, allocations: 7.513 MB / 0.6096 GB, free: 30.53 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003379/0.8314, allocations: 2.437 MB / 0.612 GB, free: 28.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01205/0.8435, allocations: 7.588 MB / 0.6194 GB, free: 20.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.295e-05/0.8435, allocations: 68.48 kB / 0.6195 GB, free: 20.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.158e-06/0.8435, allocations: 0 / 0.6195 GB, free: 20.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01783/0.8614, allocations: 10.31 MB / 0.6295 GB, free: 10.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001552/0.8629, allocations: 1.902 MB / 0.6314 GB, free: 8.297 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005098/0.868, allocations: 3.851 MB / 0.6352 GB, free: 4.418 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004709/0.8685, allocations: 65.64 kB / 0.6352 GB, free: 4.348 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001764/0.8702, allocations: 3.688 MB / 0.6388 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009674/0.8712, allocations: 0.8674 MB / 0.6397 GB, free: 15.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00171/0.8729, allocations: 0.9653 MB / 0.6406 GB, free: 14.82 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.8731, allocations: 305.1 kB / 0.6409 GB, free: 14.52 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003217/0.8763, allocations: 1.895 MB / 0.6428 GB, free: 12.61 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005407/0.8817, allocations: 4.388 MB / 0.647 GB, free: 6.992 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009657/0.8914, allocations: 6.804 MB / 0.6537 GB, free: 14.98 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.321e-05/0.8914, allocations: 24 kB / 0.6537 GB, free: 14.96 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01419/0.9056, allocations: 7.001 MB / 0.6605 GB, free: 7.941 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.567e-05/0.9057, allocations: 44.19 kB / 0.6606 GB, free: 7.898 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002281/0.9059, allocations: 88 kB / 0.6607 GB, free: 7.812 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002124/0.9081, allocations: 0.7331 MB / 0.6614 GB, free: 7.07 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004147/0.9122, allocations: 1.131 MB / 0.6625 GB, free: 5.938 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008468/0.9207, allocations: 5.543 MB / 0.6679 GB, free: 284 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004189/0.9249, allocations: 319.4 kB / 0.6682 GB, free: 15.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009107/0.9258, allocations: 275.9 kB / 0.6685 GB, free: 15.7 MB / 494.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.00571/0.9315, allocations: 2.522 MB / 0.6709 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001173/0.9326, allocations: 405.4 kB / 0.6713 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008636/0.9413, allocations: 4.255 MB / 0.6755 GB, free: 8.473 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.848e-05/0.9413, allocations: 27.98 kB / 0.6755 GB, free: 8.445 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/0.9413, allocations: 8 kB / 0.6755 GB, free: 8.438 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-05/0.9414, allocations: 11.95 kB / 0.6755 GB, free: 8.426 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02842/0.9698, allocations: 14.01 MB / 0.6892 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-05/0.9698, allocations: 15.94 kB / 0.6892 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002007/0.9718, allocations: 483.3 kB / 0.6897 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002154/0.974, allocations: 0.6858 MB / 0.6904 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002575/0.9742, allocations: 75.97 kB / 0.6904 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01049/0.9847, allocations: 7.291 MB / 0.6975 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00202/0.9867, allocations: 1.854 MB / 0.6994 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01161/0.9983, allocations: 6.758 MB / 0.706 GB, free: 8.402 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002493/1.001, allocations: 0.7626 MB / 0.7067 GB, free: 7.637 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007104/1.002, allocations: 59.98 kB / 0.7068 GB, free: 7.578 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001854/1.003, allocations: 163.9 kB / 0.7069 GB, free: 7.418 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005071/1.004, allocations: 233.3 kB / 0.7071 GB, free: 7.188 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002008/1.004, allocations: 87.98 kB / 0.7072 GB, free: 7.102 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004795/1.009, allocations: 2.526 MB / 0.7097 GB, free: 4.562 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/1.009, allocations: 4 kB / 0.7097 GB, free: 4.559 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005817/1.015, allocations: 1.293 MB / 0.711 GB, free: 3.266 MB / 0.5137 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.01194/1.027, allocations: 7.453 MB / 0.7182 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00909/1.036, allocations: 4.819 MB / 0.7229 GB, free: 6.688 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/1.036, allocations: 0 / 0.7229 GB, free: 6.688 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004049/1.04, allocations: 2.193 MB / 0.7251 GB, free: 4.469 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005577/1.045, allocations: 0.9957 MB / 0.7261 GB, free: 3.496 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.283/1.328, allocations: 46.25 MB / 0.7712 GB, free: 174.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003662/1.332, allocations: 4.505 MB / 0.7756 GB, free: 172.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003185/1.335, allocations: 1.364 MB / 0.7769 GB, free: 171 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002651/1.338, allocations: 2.565 MB / 0.7795 GB, free: 168.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.363e-06/1.338, allocations: 0 / 0.7795 GB, free: 168.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1558/1.494, allocations: 109.3 MB / 0.8862 GB, free: 59.82 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.39/23.88, allocations: 0 / 0.8862 GB, free: 59.82 MB / 0.545 GB " [Timeout remaining time 636] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 26.89542397018522]