Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 188.4 kB / 24.49 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 51.92 kB / 371.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.265, allocations: 52.18 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01591/0.2809, allocations: 13.25 MB / 436.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009902/0.2908, allocations: 4.816 MB / 441.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002659/0.2934, allocations: 127.2 kB / 441.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003366/0.2968, allocations: 1.052 MB / 442.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004264/0.3011, allocations: 1.305 MB / 443.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002399/0.3034, allocations: 0.8671 MB / 444.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005064/0.3085, allocations: 3.616 MB / 448.4 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003529/0.312, allocations: 1.909 MB / 450.3 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00274/0.3148, allocations: 1.776 MB / 452.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003572/0.3184, allocations: 2.09 MB / 454.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001188/0.3195, allocations: 480 kB / 454.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002192/0.3217, allocations: 0.6755 MB / 455.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001836/0.3236, allocations: 1.161 MB / 456.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00326/0.3268, allocations: 1.618 MB / 458.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009093/0.3359, allocations: 6.318 MB / 464.4 MB, free: 5.148 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.3359, allocations: 3.938 kB / 464.4 MB, free: 5.145 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3359, allocations: 0 / 464.4 MB, free: 5.145 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002407/0.3362, allocations: 0 / 464.4 MB, free: 5.145 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01242/0.3486, allocations: 4.268 MB / 468.7 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.3486, allocations: 12.03 kB / 468.7 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001055/0.3488, allocations: 82.48 kB / 468.8 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0012/0.35, allocations: 451.3 kB / 469.2 MB, free: 276 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003382/0.3533, allocations: 0.631 MB / 469.9 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004713/0.358, allocations: 2.214 MB / 472.1 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/0.3582, allocations: 246.4 kB / 472.3 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005318/0.3588, allocations: 315.9 kB / 472.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006855/0.3656, allocations: 4.122 MB / 476.7 MB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.244e-05/0.3657, allocations: 0 / 476.7 MB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002848/0.366, allocations: 132 kB / 476.9 MB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001504/0.3661, allocations: 142.2 kB / 477 MB, free: 8.352 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005747/0.3719, allocations: 3.39 MB / 480.4 MB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01894/0.3908, allocations: 11.74 MB / 492.1 MB, free: 8.793 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003214/0.394, allocations: 1.666 MB / 493.8 MB, free: 7.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001471/0.3955, allocations: 0.8948 MB / 494.7 MB, free: 6.266 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003921/0.3994, allocations: 2.135 MB / 496.8 MB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.3995, allocations: 47.5 kB / 496.9 MB, free: 4.055 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.815e-06/0.3995, allocations: 8 kB / 496.9 MB, free: 4.047 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.0122/0.4117, allocations: 5.807 MB / 0.4909 GB, free: 14.21 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.4117, allocations: 64.72 kB / 0.491 GB, free: 14.13 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002982/0.4147, allocations: 1.901 MB / 0.4928 GB, free: 12.19 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.506e-05/0.4148, allocations: 49.7 kB / 0.4929 GB, free: 12.13 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001285/0.4161, allocations: 1.544 MB / 0.4944 GB, free: 10.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004747/0.4166, allocations: 0.5035 MB / 0.4949 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005613/0.4171, allocations: 335.4 kB / 0.4952 GB, free: 9.73 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.4173, allocations: 305.1 kB / 0.4955 GB, free: 9.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.4185, allocations: 0.7691 MB / 0.4962 GB, free: 8.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001806/0.4203, allocations: 1.4 MB / 0.4976 GB, free: 6.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003094/0.4234, allocations: 2.316 MB / 0.4999 GB, free: 4.398 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/0.4234, allocations: 4 kB / 0.4999 GB, free: 4.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004202/0.4276, allocations: 2.482 MB / 0.5023 GB, free: 1.895 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.278e-05/0.4277, allocations: 19.94 kB / 0.5023 GB, free: 1.875 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.549e-05/0.4277, allocations: 20 kB / 0.5023 GB, free: 1.855 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003761/0.4281, allocations: 115.1 kB / 0.5024 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/0.4298, allocations: 487.2 kB / 0.5029 GB, free: 1.258 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/0.431, allocations: 1.295 MB / 0.5042 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.4326, allocations: 115.9 kB / 0.5043 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.4328, allocations: 79.98 kB / 0.5044 GB, free: 15.66 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00185/0.4346, allocations: 0.985 MB / 0.5053 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000417/0.435, allocations: 210.6 kB / 0.5055 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003352/0.4384, allocations: 1.965 MB / 0.5074 GB, free: 12.47 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.801e-05/0.4384, allocations: 19.98 kB / 0.5075 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.4384, allocations: 0 / 0.5075 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.4384, allocations: 3.984 kB / 0.5075 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007432/0.4458, allocations: 4.655 MB / 0.512 GB, free: 7.691 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.4459, allocations: 4 kB / 0.512 GB, free: 7.688 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001328/0.4472, allocations: 315.8 kB / 0.5123 GB, free: 7.379 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002972/0.4475, allocations: 98.45 kB / 0.5124 GB, free: 7.273 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.298e-05/0.4476, allocations: 24 kB / 0.5124 GB, free: 7.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.4486, allocations: 1.275 MB / 0.5137 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.4486, allocations: 4 kB / 0.5137 GB, free: 5.859 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004457/0.453, allocations: 3.091 MB / 0.5167 GB, free: 2.707 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009521/0.454, allocations: 394.5 kB / 0.5171 GB, free: 2.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000245/0.4542, allocations: 24 kB / 0.5171 GB, free: 2.297 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009309/0.4552, allocations: 84.09 kB / 0.5172 GB, free: 2.215 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.4553, allocations: 93.08 kB / 0.5173 GB, free: 2.125 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.69e-05/0.4554, allocations: 39.98 kB / 0.5173 GB, free: 2.086 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001969/0.4574, allocations: 1.289 MB / 0.5186 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4574, allocations: 7.875 kB / 0.5186 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00167/0.4591, allocations: 0.5273 MB / 0.5191 GB, free: 244 kB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (141): * Single equations (assignments): 138 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004926/0.464, allocations: 3.706 MB / 0.5227 GB, free: 12.47 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0033/0.4673, allocations: 1.976 MB / 0.5246 GB, free: 10.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.4673, allocations: 0 / 0.5246 GB, free: 10.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.4688, allocations: 0.9572 MB / 0.5256 GB, free: 9.508 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002471/0.4712, allocations: 0.509 MB / 0.5261 GB, free: 9.004 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2279/0.6991, allocations: 20.08 MB / 0.5457 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001341/0.7004, allocations: 1.71 MB / 0.5473 GB, free: 103.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001294/0.7017, allocations: 0.5097 MB / 0.5478 GB, free: 103.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/0.7029, allocations: 1.187 MB / 0.549 GB, free: 102.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.473e-06/0.7029, allocations: 0 / 0.549 GB, free: 102.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07788/0.7807, allocations: 52.98 MB / 0.6007 GB, free: 50.33 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.28/16.06, allocations: 15.5 kB / 0.6008 GB, free: 50.32 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 25.221171078970656]