Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.001778/0.001778, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.002073/0.002073, allocations: 207.4 kB / 24.53 MB, free: 4.07 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.461/1.461, allocations: 230.5 MB / 258.2 MB, free: 8.004 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 63.84 kB / 378.6 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2365, allocations: 53.41 MB / 432 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01363/0.2501, allocations: 11.05 MB / 443 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007396/0.2575, allocations: 3.696 MB / 446.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001667/0.2592, allocations: 83.44 kB / 446.8 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002306/0.2615, allocations: 0.893 MB / 447.7 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003025/0.2645, allocations: 0.9204 MB / 448.6 MB, free: 5.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.2658, allocations: 467.2 kB / 449.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003916/0.2697, allocations: 2.956 MB / 452 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002823/0.2725, allocations: 1.56 MB / 453.6 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002371/0.2749, allocations: 1.425 MB / 455 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00309/0.278, allocations: 1.798 MB / 456.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000976/0.279, allocations: 375.9 kB / 457.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001495/0.2805, allocations: 487.8 kB / 457.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001662/0.2821, allocations: 1.095 MB / 458.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00294/0.2851, allocations: 1.672 MB / 460.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006955/0.292, allocations: 4.912 MB / 465.3 MB, free: 5.145 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/0.292, allocations: 0 / 465.3 MB, free: 5.145 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.292, allocations: 0 / 465.3 MB, free: 5.145 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001939/0.2922, allocations: 0 / 465.3 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.009251/0.3015, allocations: 3.405 MB / 468.8 MB, free: 1.688 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.3015, allocations: 12.03 kB / 468.8 MB, free: 1.676 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.765e-05/0.3016, allocations: 69.22 kB / 468.8 MB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005551/0.3021, allocations: 366.9 kB / 469.2 MB, free: 1.238 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/0.3032, allocations: 362.8 kB / 469.5 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003573/0.3068, allocations: 1.748 MB / 471.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/0.307, allocations: 193 kB / 471.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005014/0.3075, allocations: 248 kB / 471.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005874/0.3133, allocations: 3.291 MB / 475 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.717e-05/0.3134, allocations: 7.938 kB / 475 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002555/0.3137, allocations: 104 kB / 475.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001397/0.3138, allocations: 132.8 kB / 475.3 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005213/0.319, allocations: 2.744 MB / 478 MB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01668/0.3357, allocations: 10.22 MB / 488.2 MB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.3375, allocations: 1.073 MB / 489.3 MB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.3387, allocations: 0.7059 MB / 490 MB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002422/0.339, allocations: 54.05 kB / 490 MB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/0.339, allocations: 43.56 kB / 490.1 MB, free: 11.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.865e-06/0.339, allocations: 0 / 490.1 MB, free: 11.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01562/0.3546, allocations: 6.645 MB / 496.7 MB, free: 5.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.496e-05/0.3547, allocations: 64.41 kB / 496.8 MB, free: 5.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002855/0.3576, allocations: 1.798 MB / 498.6 MB, free: 3.258 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001765/0.3577, allocations: 45.7 kB / 498.6 MB, free: 3.207 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0011/0.3588, allocations: 1.31 MB / 500 MB, free: 1.883 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000467/0.3593, allocations: 452.2 kB / 0.4887 GB, free: 1.438 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005055/0.3598, allocations: 291.5 kB / 0.4889 GB, free: 1.145 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.3599, allocations: 309.1 kB / 0.4892 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.3612, allocations: 0.7769 MB / 0.49 GB, free: 64 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001695/0.3629, allocations: 1.292 MB / 0.4913 GB, free: 14.54 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00322/0.3661, allocations: 2.21 MB / 0.4934 GB, free: 12.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/0.3662, allocations: 8 kB / 0.4934 GB, free: 12.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004728/0.3709, allocations: 2.479 MB / 0.4958 GB, free: 9.594 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.471e-05/0.3709, allocations: 16 kB / 0.4959 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.041e-05/0.371, allocations: 16 kB / 0.4959 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006516/0.3716, allocations: 239.2 kB / 0.4961 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/0.3732, allocations: 419.3 kB / 0.4965 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002899/0.3761, allocations: 3.031 MB / 0.4995 GB, free: 5.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.3776, allocations: 127.8 kB / 0.4996 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001612/0.3778, allocations: 71.98 kB / 0.4997 GB, free: 5.449 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001461/0.3792, allocations: 0.8281 MB / 0.5005 GB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004183/0.3796, allocations: 194.7 kB / 0.5006 GB, free: 4.422 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003723/0.3834, allocations: 2.046 MB / 0.5026 GB, free: 2.352 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.337e-05/0.3834, allocations: 12 kB / 0.5027 GB, free: 2.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3834, allocations: 0 / 0.5027 GB, free: 2.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.3834, allocations: 7.922 kB / 0.5027 GB, free: 2.332 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009082/0.3925, allocations: 4.713 MB / 0.5073 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.3925, allocations: 0 / 0.5073 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.3936, allocations: 263.9 kB / 0.5075 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005673/0.3942, allocations: 207.2 kB / 0.5077 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/0.3944, allocations: 27.94 kB / 0.5077 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002832/0.3972, allocations: 3.008 MB / 0.5107 GB, free: 9.781 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.3972, allocations: 4 kB / 0.5107 GB, free: 9.777 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005002/0.4022, allocations: 3.144 MB / 0.5138 GB, free: 6.578 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009965/0.4032, allocations: 362.5 kB / 0.5141 GB, free: 6.223 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/0.4035, allocations: 31.92 kB / 0.5141 GB, free: 6.191 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009725/0.4044, allocations: 95.94 kB / 0.5142 GB, free: 6.098 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.4046, allocations: 80.78 kB / 0.5143 GB, free: 6.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.375e-05/0.4047, allocations: 35.98 kB / 0.5143 GB, free: 5.984 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001948/0.4066, allocations: 1.224 MB / 0.5155 GB, free: 4.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4066, allocations: 0 / 0.5155 GB, free: 4.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0016/0.4082, allocations: 491.9 kB / 0.516 GB, free: 4.289 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (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.005404/0.4137, allocations: 3.776 MB / 0.5197 GB, free: 452 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00382/0.4175, allocations: 2.117 MB / 0.5218 GB, free: 14.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.4175, allocations: 0 / 0.5218 GB, free: 14.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001915/0.4194, allocations: 1.13 MB / 0.5229 GB, free: 13.13 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002438/0.4218, allocations: 0.4941 MB / 0.5233 GB, free: 12.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2087/0.6305, allocations: 18.81 MB / 0.5417 GB, free: 98.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001936/0.6324, allocations: 2.012 MB / 0.5437 GB, free: 97.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001421/0.6338, allocations: 0.4961 MB / 0.5442 GB, free: 97.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/0.635, allocations: 1.02 MB / 0.5452 GB, free: 96.68 MB / 446.1 MB Notification: Performance of SimCode: time 1.233e-06/0.635, allocations: 0 / 0.5452 GB, free: 96.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08069/0.7157, allocations: 47.72 MB / 0.5918 GB, free: 54.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.96/15.67, allocations: 6.594 kB / 0.5918 GB, free: 54.6 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.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: 24.456063073012047]