Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.001777/0.001777, allocations: 120.1 kB / 18.5 MB, free: 4.535 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.002511/0.002511, allocations: 222.3 kB / 21.46 MB, free: 1.582 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.425/1.425, allocations: 230.4 MB / 254.7 MB, free: 15.02 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_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 59.91 kB / 373.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1069, allocations: 53.39 MB / 427.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2473/0.3542, allocations: 41.98 MB / 469.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02799/0.3821, allocations: 11.24 MB / 480.3 MB, free: 6.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01045/0.3926, allocations: 380.8 kB / 480.7 MB, free: 6.809 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02183/0.4144, allocations: 8.901 MB / 489.6 MB, free: 96 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01385/0.4283, allocations: 3.646 MB / 493.3 MB, free: 13.13 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008359/0.4366, allocations: 2.45 MB / 495.7 MB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0201/0.4567, allocations: 13.43 MB / 0.4972 GB, free: 14.53 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03343/0.4902, allocations: 19.87 MB / 0.5166 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.012/0.5022, allocations: 7.126 MB / 0.5236 GB, free: 3.379 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01346/0.5156, allocations: 8.102 MB / 0.5315 GB, free: 11.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00534/0.521, allocations: 1.992 MB / 0.5334 GB, free: 9.258 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007895/0.5289, allocations: 2.406 MB / 0.5358 GB, free: 6.852 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006626/0.5355, allocations: 4.056 MB / 0.5397 GB, free: 2.785 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01396/0.5494, allocations: 7.77 MB / 0.5473 GB, free: 10.98 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03496/0.5844, allocations: 26.55 MB / 0.5732 GB, free: 356 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.5844, allocations: 4 kB / 0.5733 GB, free: 352 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5844, allocations: 0 / 0.5733 GB, free: 352 kB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0007185/0.5851, allocations: 0 / 0.5733 GB, free: 352 kB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04559/0.6307, allocations: 15.78 MB / 0.5887 GB, free: 440 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.6308, allocations: 12.03 kB / 0.5887 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003561/0.6311, allocations: 337.7 kB / 0.589 GB, free: 88 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005891/0.637, allocations: 1.756 MB / 0.5907 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0342/0.6712, allocations: 6.193 MB / 0.5968 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01787/0.6891, allocations: 8.325 MB / 0.6049 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001025/0.6901, allocations: 0.9272 MB / 0.6058 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004838/0.6949, allocations: 1.23 MB / 0.607 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4296/1.125, allocations: 19.04 MB / 0.6256 GB, free: 141.4 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004065/1.125, allocations: 20.77 kB / 0.6256 GB, free: 141.4 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002638/1.128, allocations: 0.5033 MB / 0.6261 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007003/1.128, allocations: 0.6579 MB / 0.6267 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03603/1.164, allocations: 17.07 MB / 0.6434 GB, free: 134.8 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08468/1.249, allocations: 60.85 MB / 0.7028 GB, free: 89.09 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0178/1.267, allocations: 33.07 MB / 0.7351 GB, free: 52.16 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004787/1.272, allocations: 3.484 MB / 0.7385 GB, free: 48.67 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01198/1.284, allocations: 9.125 MB / 0.7474 GB, free: 39.68 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/1.284, allocations: 73.41 kB / 0.7475 GB, free: 39.6 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 4.528e-06/1.284, allocations: 0 / 0.7475 GB, free: 39.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.02901/1.313, allocations: 17.94 MB / 0.765 GB, free: 22.06 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/1.313, allocations: 98.58 kB / 0.7651 GB, free: 21.95 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005761/1.318, allocations: 5.258 MB / 0.7703 GB, free: 16.78 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0004532/1.319, allocations: 93.7 kB / 0.7703 GB, free: 16.68 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002111/1.321, allocations: 5.825 MB / 0.776 GB, free: 10.92 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009288/1.322, allocations: 1.473 MB / 0.7775 GB, free: 9.465 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001554/1.323, allocations: 1.366 MB / 0.7788 GB, free: 8.09 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.243e-05/1.323, allocations: 301.1 kB / 0.7791 GB, free: 7.793 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003508/1.327, allocations: 2.973 MB / 0.782 GB, free: 4.816 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005621/1.333, allocations: 6.019 MB / 0.7879 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01429/1.347, allocations: 9.683 MB / 0.7973 GB, free: 2.207 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001008/1.347, allocations: 31.94 kB / 0.7974 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01895/1.366, allocations: 10.1 MB / 0.8072 GB, free: 8.008 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.796e-05/1.366, allocations: 48 kB / 0.8073 GB, free: 7.961 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001554/1.366, allocations: 104 kB / 0.8074 GB, free: 7.859 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002612/1.369, allocations: 0.9446 MB / 0.8083 GB, free: 6.902 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006054/1.375, allocations: 1.63 MB / 0.8099 GB, free: 5.27 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01376/1.389, allocations: 10.21 MB / 0.8199 GB, free: 10.63 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005707/1.394, allocations: 411.5 kB / 0.8203 GB, free: 10.23 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001034/1.395, allocations: 367.9 kB / 0.8206 GB, free: 9.867 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00837/1.404, allocations: 4.309 MB / 0.8248 GB, free: 5.543 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001558/1.405, allocations: 0.5745 MB / 0.8254 GB, free: 4.965 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2615/1.667, allocations: 6.632 MB / 0.8319 GB, free: 177.6 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.362e-05/1.667, allocations: 43.48 kB / 0.8319 GB, free: 177.6 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.895e-05/1.667, allocations: 8.594 kB / 0.8319 GB, free: 177.6 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.289e-05/1.667, allocations: 20.34 kB / 0.8319 GB, free: 177.6 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02989/1.697, allocations: 16.24 MB / 0.8478 GB, free: 172.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/1.697, allocations: 5.953 kB / 0.8478 GB, free: 172.7 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003484/1.7, allocations: 0.7769 MB / 0.8486 GB, free: 172.6 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002372/1.703, allocations: 0.7937 MB / 0.8493 GB, free: 172.4 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003048/1.703, allocations: 92.31 kB / 0.8494 GB, free: 172.4 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009983/1.713, allocations: 9.346 MB / 0.8585 GB, free: 165.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.713, allocations: 12.06 kB / 0.8586 GB, free: 165.8 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01449/1.727, allocations: 9.824 MB / 0.8681 GB, free: 161.8 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002789/1.73, allocations: 1.124 MB / 0.8692 GB, free: 161.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008845/1.731, allocations: 79.72 kB / 0.8693 GB, free: 161.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002343/1.733, allocations: 221.6 kB / 0.8695 GB, free: 161.3 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006766/1.734, allocations: 282.4 kB / 0.8698 GB, free: 161.2 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000257/1.734, allocations: 120.2 kB / 0.8699 GB, free: 161.2 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005073/1.739, allocations: 3.514 MB / 0.8733 GB, free: 159.9 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.1e-07/1.739, allocations: 1.406 kB / 0.8733 GB, free: 159.9 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.007028/1.747, allocations: 1.943 MB / 0.8752 GB, free: 159.8 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.01266/1.759, allocations: 10.55 MB / 0.8855 GB, free: 155.1 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01046/1.77, allocations: 7.531 MB / 0.8929 GB, free: 149.4 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/1.77, allocations: 4 kB / 0.8929 GB, free: 149.4 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004438/1.774, allocations: 3.4 MB / 0.8962 GB, free: 146.3 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006466/1.781, allocations: 1.422 MB / 0.8976 GB, free: 145.2 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.102/1.883, allocations: 67.36 MB / 0.9634 GB, free: 75.05 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007932/1.89, allocations: 7.428 MB / 0.9706 GB, free: 67.58 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005896/1.896, allocations: 2.19 MB / 0.9728 GB, free: 65.38 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005651/1.902, allocations: 4.526 MB / 0.9772 GB, free: 60.86 MB / 0.5607 GB Notification: Performance of SimCode: time 1.232e-06/1.902, allocations: 0 / 0.9772 GB, free: 60.86 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4641/2.366, allocations: 155.3 MB / 1.129 GB, free: 133.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.93/25.3, allocations: 11.16 kB / 1.129 GB, free: 133.2 MB / 0.5763 GB " [Timeout remaining time 634] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 647] Reference file matches [Calling sys.exit(0), Time elapsed: 51.84349384001689]