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.001724/0.001724, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001993/0.001993, allocations: 213.5 kB / 23.75 MB, free: 4.668 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.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_1_0_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_4_1_0_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.001574/0.001574, allocations: 43.94 kB / 377.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2516, allocations: 53.36 MB / 431.2 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03641/0.288, allocations: 31.18 MB / 462.3 MB, free: 7.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02011/0.3082, allocations: 8.927 MB / 471.3 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006393/0.3145, allocations: 222.9 kB / 471.5 MB, free: 14.33 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01427/0.3288, allocations: 5.028 MB / 476.5 MB, free: 9.285 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01048/0.3393, allocations: 3.132 MB / 479.6 MB, free: 6.141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005641/0.3449, allocations: 1.656 MB / 481.3 MB, free: 4.488 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0144/0.3593, allocations: 8.87 MB / 490.2 MB, free: 11.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01716/0.3765, allocations: 9.234 MB / 499.4 MB, free: 2.262 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009002/0.3855, allocations: 4.351 MB / 0.4919 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009266/0.3948, allocations: 4.897 MB / 0.4967 GB, free: 8.984 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003947/0.3987, allocations: 1.164 MB / 0.4979 GB, free: 7.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005524/0.4042, allocations: 1.562 MB / 0.4994 GB, free: 6.258 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004585/0.4088, allocations: 2.415 MB / 0.5018 GB, free: 3.836 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009707/0.4185, allocations: 4.68 MB / 0.5063 GB, free: 15.13 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02344/0.442, allocations: 15.88 MB / 0.5218 GB, free: 15.2 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.442, allocations: 0 / 0.5218 GB, free: 15.2 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.442, allocations: 0 / 0.5218 GB, free: 15.2 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004245/0.4424, allocations: 4 kB / 0.5218 GB, free: 15.2 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.03185/0.4742, allocations: 9.888 MB / 0.5315 GB, free: 5.223 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.4743, allocations: 19.91 kB / 0.5315 GB, free: 5.203 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004026/0.4783, allocations: 1.145 MB / 0.5326 GB, free: 4.047 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2656/0.7439, allocations: 5.221 MB / 0.5377 GB, free: 90.95 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01187/0.7558, allocations: 5.149 MB / 0.5428 GB, free: 89.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004523/0.7562, allocations: 0.5244 MB / 0.5433 GB, free: 88.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002705/0.7589, allocations: 0.7069 MB / 0.544 GB, free: 88.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02106/0.78, allocations: 11.36 MB / 0.5551 GB, free: 83.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001926/0.7802, allocations: 23.69 kB / 0.5551 GB, free: 83.65 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000871/0.7811, allocations: 296.8 kB / 0.5554 GB, free: 83.43 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003113/0.7814, allocations: 451.9 kB / 0.5558 GB, free: 83.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01753/0.7989, allocations: 10.87 MB / 0.5664 GB, free: 74.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05153/0.8504, allocations: 36.69 MB / 0.6022 GB, free: 37.13 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01101/0.8614, allocations: 7.516 MB / 0.6096 GB, free: 30.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003776/0.8652, allocations: 2.44 MB / 0.612 GB, free: 28.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01287/0.8781, allocations: 7.585 MB / 0.6194 GB, free: 20.94 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.8781, allocations: 56.56 kB / 0.6194 GB, free: 20.88 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 3.757e-06/0.8781, allocations: 1.594 kB / 0.6194 GB, free: 20.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01772/0.8958, allocations: 10.32 MB / 0.6295 GB, free: 10.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001559/0.8974, allocations: 1.916 MB / 0.6314 GB, free: 8.562 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004667/0.9021, allocations: 3.847 MB / 0.6351 GB, free: 4.688 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003613/0.9024, allocations: 61.7 kB / 0.6352 GB, free: 4.621 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001459/0.9039, allocations: 3.688 MB / 0.6388 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006096/0.9045, allocations: 0.87 MB / 0.6396 GB, free: 72 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00142/0.9059, allocations: 0.9607 MB / 0.6406 GB, free: 15.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.906, allocations: 301.1 kB / 0.6409 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003014/0.9091, allocations: 1.895 MB / 0.6427 GB, free: 12.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005483/0.9145, allocations: 4.396 MB / 0.647 GB, free: 7.27 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009708/0.9242, allocations: 6.8 MB / 0.6536 GB, free: 15.26 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.77e-05/0.9243, allocations: 24 kB / 0.6537 GB, free: 15.24 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01366/0.938, allocations: 7.009 MB / 0.6605 GB, free: 8.211 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.121e-05/0.9381, allocations: 40 kB / 0.6606 GB, free: 8.172 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001353/0.9382, allocations: 95.98 kB / 0.6606 GB, free: 8.078 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002087/0.9403, allocations: 0.726 MB / 0.6614 GB, free: 7.344 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003999/0.9443, allocations: 1.135 MB / 0.6625 GB, free: 6.207 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008313/0.9526, allocations: 5.545 MB / 0.6679 GB, free: 0.543 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003923/0.9565, allocations: 319.3 kB / 0.6682 GB, free: 236 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007477/0.9573, allocations: 276 kB / 0.6684 GB, free: 15.96 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.005965/0.9632, allocations: 2.522 MB / 0.6709 GB, free: 13.43 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/0.9644, allocations: 401.5 kB / 0.6713 GB, free: 13.03 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008301/0.9727, allocations: 4.251 MB / 0.6754 GB, free: 8.746 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.388e-05/0.9727, allocations: 28 kB / 0.6755 GB, free: 8.719 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.9728, allocations: 4 kB / 0.6755 GB, free: 8.715 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.92e-05/0.9728, allocations: 19.89 kB / 0.6755 GB, free: 8.695 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02859/1.001, allocations: 14.02 MB / 0.6892 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.413e-05/1.001, allocations: 12 kB / 0.6892 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002093/1.003, allocations: 483.3 kB / 0.6897 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002167/1.006, allocations: 0.6859 MB / 0.6903 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003639/1.006, allocations: 75.97 kB / 0.6904 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/1.017, allocations: 7.292 MB / 0.6975 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002276/1.019, allocations: 1.85 MB / 0.6993 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01213/1.031, allocations: 6.759 MB / 0.7059 GB, free: 8.684 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002763/1.034, allocations: 0.7587 MB / 0.7067 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008437/1.035, allocations: 63.98 kB / 0.7067 GB, free: 7.859 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001946/1.037, allocations: 155.8 kB / 0.7069 GB, free: 7.707 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005065/1.037, allocations: 237.4 kB / 0.7071 GB, free: 7.473 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000196/1.037, allocations: 87.98 kB / 0.7072 GB, free: 7.387 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004938/1.042, allocations: 2.526 MB / 0.7096 GB, free: 4.848 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/1.042, allocations: 0 / 0.7096 GB, free: 4.848 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.007189/1.049, allocations: 1.301 MB / 0.7109 GB, free: 3.547 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.01277/1.062, allocations: 7.45 MB / 0.7182 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009151/1.071, allocations: 4.819 MB / 0.7229 GB, free: 6.973 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.426e-05/1.071, allocations: 4 kB / 0.7229 GB, free: 6.969 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004246/1.076, allocations: 2.185 MB / 0.725 GB, free: 4.758 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005281/1.081, allocations: 1.01 MB / 0.726 GB, free: 3.773 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3373/1.418, allocations: 46.25 MB / 0.7712 GB, free: 174.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004196/1.422, allocations: 4.499 MB / 0.7756 GB, free: 172.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003719/1.426, allocations: 1.369 MB / 0.7769 GB, free: 171.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00343/1.43, allocations: 2.557 MB / 0.7794 GB, free: 169.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.653e-06/1.43, allocations: 0 / 0.7794 GB, free: 169.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1716/1.601, allocations: 109.3 MB / 0.8862 GB, free: 60.63 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.92/24.53, allocations: 11.92 kB / 0.8862 GB, free: 60.62 MB / 0.545 GB " [Timeout remaining time 635] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 52.5] 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: 27.740848279790953]