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.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.001285/0.001285, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001464/0.001464, allocations: 215 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 179] 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.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_3_2_3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 47.94 kB / 347.2 MB, free: 9.863 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2282, allocations: 49.16 MB / 396.4 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02699/0.2552, allocations: 25.99 MB / 422.4 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02043/0.2756, allocations: 8.342 MB / 430.7 MB, free: 320 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005991/0.2816, allocations: 197.8 kB / 430.9 MB, free: 256 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01202/0.2936, allocations: 4.636 MB / 435.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009764/0.3034, allocations: 2.992 MB / 438.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005359/0.3087, allocations: 1.591 MB / 440.1 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01357/0.3223, allocations: 8.767 MB / 448.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01423/0.3365, allocations: 9.056 MB / 457.9 MB, free: 5.309 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006608/0.3431, allocations: 4.339 MB / 462.3 MB, free: 0.957 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008109/0.3512, allocations: 4.538 MB / 466.8 MB, free: 12.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003465/0.3547, allocations: 1.16 MB / 468 MB, free: 11.24 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004604/0.3593, allocations: 1.499 MB / 469.5 MB, free: 9.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003683/0.363, allocations: 2.412 MB / 471.9 MB, free: 7.324 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007542/0.3705, allocations: 3.657 MB / 475.5 MB, free: 3.652 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01878/0.3893, allocations: 15.81 MB / 491.4 MB, free: 3.789 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3893, allocations: 0 / 491.4 MB, free: 3.789 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3893, allocations: 0 / 491.4 MB, free: 3.789 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002853/0.3896, allocations: 7.938 kB / 491.4 MB, free: 3.781 MB / 398.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.02643/0.416, allocations: 9.842 MB / 0.4895 GB, free: 9.852 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.4161, allocations: 11.98 kB / 0.4895 GB, free: 9.84 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005197/0.4213, allocations: 1.145 MB / 0.4906 GB, free: 8.684 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0299/0.4512, allocations: 5.325 MB / 0.4958 GB, free: 3.348 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01166/0.4629, allocations: 4.672 MB / 0.5004 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006028/0.4635, allocations: 0.5299 MB / 0.5009 GB, free: 14.05 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002891/0.4663, allocations: 0.7108 MB / 0.5016 GB, free: 13.34 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02805/0.4944, allocations: 11.55 MB / 0.5128 GB, free: 1.656 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003496/0.4947, allocations: 11.95 kB / 0.5129 GB, free: 1.645 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001971/0.4967, allocations: 300 kB / 0.5131 GB, free: 1.352 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005253/0.4972, allocations: 446.9 kB / 0.5136 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0245/0.5217, allocations: 10.77 MB / 0.5241 GB, free: 6.137 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05982/0.5816, allocations: 33.59 MB / 0.5569 GB, free: 3.598 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1819/0.7634, allocations: 7.368 MB / 0.5641 GB, free: 136.2 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00416/0.7676, allocations: 2.414 MB / 0.5664 GB, free: 136.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01274/0.7803, allocations: 6.867 MB / 0.5731 GB, free: 133.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.7804, allocations: 61.72 kB / 0.5732 GB, free: 133.1 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 4.448e-06/0.7804, allocations: 0.7188 kB / 0.5732 GB, free: 133.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.01812/0.7985, allocations: 10.29 MB / 0.5833 GB, free: 129 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00161/0.8001, allocations: 1.883 MB / 0.5851 GB, free: 127.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005227/0.8053, allocations: 3.972 MB / 0.589 GB, free: 125.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003508/0.8057, allocations: 69.36 kB / 0.589 GB, free: 125.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001615/0.8073, allocations: 3.674 MB / 0.5926 GB, free: 123.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006482/0.808, allocations: 0.8699 MB / 0.5935 GB, free: 122.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001055/0.809, allocations: 0.9577 MB / 0.5944 GB, free: 122.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.18e-05/0.809, allocations: 301.1 kB / 0.5947 GB, free: 121.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002209/0.8112, allocations: 1.893 MB / 0.5965 GB, free: 121.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003048/0.8143, allocations: 4.442 MB / 0.6009 GB, free: 117 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005511/0.8198, allocations: 6.785 MB / 0.6075 GB, free: 111.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.575e-05/0.8199, allocations: 26.31 kB / 0.6075 GB, free: 111.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009124/0.829, allocations: 6.981 MB / 0.6144 GB, free: 104.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.331e-05/0.829, allocations: 51.98 kB / 0.6144 GB, free: 104.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.63e-05/0.8291, allocations: 84 kB / 0.6145 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001707/0.8308, allocations: 0.736 MB / 0.6152 GB, free: 103.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003235/0.8341, allocations: 1.123 MB / 0.6163 GB, free: 102.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005729/0.8398, allocations: 5.441 MB / 0.6216 GB, free: 97.14 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003845/0.8436, allocations: 319.4 kB / 0.6219 GB, free: 96.83 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000584/0.8442, allocations: 272 kB / 0.6222 GB, free: 96.57 MB / 478.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.003517/0.8477, allocations: 2.518 MB / 0.6246 GB, free: 94.04 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008969/0.8486, allocations: 405.4 kB / 0.625 GB, free: 93.64 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006034/0.8547, allocations: 4.247 MB / 0.6292 GB, free: 89.36 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.8547, allocations: 26.81 kB / 0.6292 GB, free: 89.34 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.8547, allocations: 12.44 kB / 0.6292 GB, free: 89.33 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.802e-05/0.8547, allocations: 11.95 kB / 0.6292 GB, free: 89.32 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01773/0.8724, allocations: 13.45 MB / 0.6423 GB, free: 75.68 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-05/0.8725, allocations: 12 kB / 0.6424 GB, free: 75.67 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001689/0.8742, allocations: 479.2 kB / 0.6428 GB, free: 75.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001763/0.8759, allocations: 0.6852 MB / 0.6435 GB, free: 74.51 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001501/0.8761, allocations: 75.98 kB / 0.6436 GB, free: 74.43 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007148/0.8832, allocations: 7.167 MB / 0.6506 GB, free: 67.03 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001232/0.8844, allocations: 1.837 MB / 0.6524 GB, free: 65.07 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008058/0.8925, allocations: 6.742 MB / 0.6589 GB, free: 58.05 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002263/0.8948, allocations: 0.751 MB / 0.6597 GB, free: 57.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007475/0.8955, allocations: 60 kB / 0.6597 GB, free: 57.24 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001861/0.8974, allocations: 159.8 kB / 0.6599 GB, free: 57.08 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004049/0.8978, allocations: 237.3 kB / 0.6601 GB, free: 56.85 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001596/0.8979, allocations: 91.98 kB / 0.6602 GB, free: 56.76 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003153/0.9011, allocations: 2.509 MB / 0.6626 GB, free: 54.27 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.9011, allocations: 4 kB / 0.6626 GB, free: 54.27 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004514/0.9056, allocations: 1.285 MB / 0.6639 GB, free: 52.98 MB / 478.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.008304/0.9139, allocations: 7.422 MB / 0.6712 GB, free: 45.28 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006277/0.9202, allocations: 4.819 MB / 0.6759 GB, free: 40.44 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/0.9202, allocations: 4 kB / 0.6759 GB, free: 40.44 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002885/0.9231, allocations: 2.193 MB / 0.678 GB, free: 38.22 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003992/0.9271, allocations: 0.9995 MB / 0.679 GB, free: 37.23 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05762/0.9847, allocations: 46.25 MB / 0.7241 GB, free: 3.289 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00649/0.9912, allocations: 4.012 MB / 0.7281 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00402/0.9952, allocations: 1.356 MB / 0.7294 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003847/0.9991, allocations: 2.538 MB / 0.7319 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of SimCode: time 1.433e-06/0.9991, allocations: 4 kB / 0.7319 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3441/1.343, allocations: 107.6 MB / 0.8369 GB, free: 118.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.3/21.65, allocations: 7.906 kB / 0.8369 GB, free: 118.9 MB / 0.5137 GB " [Timeout remaining time 638] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.434591109864414]