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.001927/0.001927, allocations: 107.1 kB / 20.44 MB, free: 1.195 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.002336/0.002336, allocations: 216.2 kB / 23.73 MB, free: 4.406 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.443/1.443, allocations: 230.5 MB / 257.4 MB, free: 7.762 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00254/0.00254, allocations: 55.91 kB / 377.7 MB, free: 2.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2983, allocations: 53.42 MB / 431.2 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01214/0.3105, allocations: 9.64 MB / 440.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006706/0.3172, allocations: 3.474 MB / 444.3 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001701/0.3189, allocations: 91.38 kB / 444.4 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002317/0.3212, allocations: 0.8112 MB / 445.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002872/0.3241, allocations: 0.9126 MB / 446.1 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.3252, allocations: 471.2 kB / 446.5 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003837/0.329, allocations: 2.961 MB / 449.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002341/0.3314, allocations: 1.502 MB / 451 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002664/0.3341, allocations: 1.417 MB / 452.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003049/0.3371, allocations: 1.693 MB / 454.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007625/0.3379, allocations: 376 kB / 454.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001502/0.3394, allocations: 475.8 kB / 455 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001331/0.3407, allocations: 1.095 MB / 456 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002101/0.3428, allocations: 1.342 MB / 457.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005732/0.3485, allocations: 4.94 MB / 462.3 MB, free: 7.113 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.3485, allocations: 3.984 kB / 462.3 MB, free: 7.109 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3485, allocations: 0 / 462.3 MB, free: 7.109 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001031/0.3486, allocations: 0 / 462.3 MB, free: 7.109 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.007032/0.3557, allocations: 3.398 MB / 465.7 MB, free: 3.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.3557, allocations: 15.98 kB / 465.7 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00058/0.3563, allocations: 370.9 kB / 466.1 MB, free: 3.273 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001023/0.3573, allocations: 362.8 kB / 466.5 MB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003915/0.3612, allocations: 1.752 MB / 468.2 MB, free: 1.129 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.3614, allocations: 193.1 kB / 468.4 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004875/0.3619, allocations: 252 kB / 468.6 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005883/0.3678, allocations: 3.362 MB / 472 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.582e-05/0.3679, allocations: 11.94 kB / 472 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002337/0.3681, allocations: 96 kB / 472.1 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001474/0.3682, allocations: 136.9 kB / 472.2 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005119/0.3734, allocations: 2.74 MB / 475 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01762/0.391, allocations: 9.429 MB / 484.4 MB, free: 448 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001957/0.3929, allocations: 1.07 MB / 485.5 MB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.3942, allocations: 0.702 MB / 486.2 MB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002555/0.3945, allocations: 48.97 kB / 486.2 MB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.034e-05/0.3946, allocations: 47.55 kB / 486.3 MB, free: 14.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.537e-06/0.3946, allocations: 0 / 486.3 MB, free: 14.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01557/0.4101, allocations: 6.654 MB / 492.9 MB, free: 7.863 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.4102, allocations: 64.41 kB / 493 MB, free: 7.789 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00293/0.4131, allocations: 1.821 MB / 494.8 MB, free: 5.969 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000214/0.4133, allocations: 45.7 kB / 494.9 MB, free: 5.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.4144, allocations: 1.306 MB / 496.2 MB, free: 4.598 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000514/0.4149, allocations: 456.2 kB / 496.6 MB, free: 4.148 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004937/0.4154, allocations: 295.4 kB / 496.9 MB, free: 3.852 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.4155, allocations: 305.1 kB / 497.2 MB, free: 3.551 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.4168, allocations: 0.7769 MB / 498 MB, free: 2.773 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00167/0.4185, allocations: 1.296 MB / 499.3 MB, free: 1.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003146/0.4216, allocations: 2.202 MB / 0.4897 GB, free: 14.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.264e-05/0.4216, allocations: 8 kB / 0.4897 GB, free: 14.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004353/0.426, allocations: 2.483 MB / 0.4922 GB, free: 12.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.507e-05/0.426, allocations: 12 kB / 0.4922 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.661e-05/0.4261, allocations: 19.98 kB / 0.4922 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006605/0.4267, allocations: 235.3 kB / 0.4924 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/0.4282, allocations: 423.3 kB / 0.4928 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002904/0.4311, allocations: 3.016 MB / 0.4958 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/0.4327, allocations: 135.8 kB / 0.4959 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001765/0.4329, allocations: 71.94 kB / 0.496 GB, free: 8.168 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.001496/0.4344, allocations: 0.8241 MB / 0.4968 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000457/0.4348, allocations: 194.7 kB / 0.497 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003616/0.4384, allocations: 2.035 MB / 0.4989 GB, free: 5.086 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.4384, allocations: 12 kB / 0.499 GB, free: 5.074 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.4384, allocations: 8 kB / 0.499 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.636e-05/0.4385, allocations: 7.969 kB / 0.499 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008866/0.4473, allocations: 4.444 MB / 0.5033 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/0.4473, allocations: 4 kB / 0.5033 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.4484, allocations: 259.6 kB / 0.5036 GB, free: 268 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005565/0.449, allocations: 207.5 kB / 0.5038 GB, free: 48 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.111e-05/0.4491, allocations: 27.98 kB / 0.5038 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002861/0.4519, allocations: 3 MB / 0.5067 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.4519, allocations: 7.984 kB / 0.5067 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004961/0.4569, allocations: 3.132 MB / 0.5098 GB, free: 9.594 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/0.4581, allocations: 362.8 kB / 0.5101 GB, free: 9.238 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002871/0.4584, allocations: 27.94 kB / 0.5102 GB, free: 9.211 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009558/0.4593, allocations: 104 kB / 0.5102 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001835/0.4595, allocations: 88.77 kB / 0.5103 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.28e-05/0.4596, allocations: 32 kB / 0.5104 GB, free: 8.992 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001907/0.4615, allocations: 1.228 MB / 0.5116 GB, free: 7.773 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4615, allocations: 0 / 0.5116 GB, free: 7.773 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001512/0.463, allocations: 487.9 kB / 0.512 GB, free: 7.297 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.005266/0.4683, allocations: 3.787 MB / 0.5157 GB, free: 3.441 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003646/0.4719, allocations: 2.11 MB / 0.5178 GB, free: 1.305 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/0.4719, allocations: 0 / 0.5178 GB, free: 1.305 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001882/0.4738, allocations: 1.125 MB / 0.5189 GB, free: 148 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002308/0.4761, allocations: 498.8 kB / 0.5194 GB, free: 15.67 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.211/0.6872, allocations: 18.8 MB / 0.5377 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001782/0.6889, allocations: 1.434 MB / 0.5391 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00141/0.6904, allocations: 0.4976 MB / 0.5396 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/0.6915, allocations: 1.018 MB / 0.5406 GB, free: 100.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6915, allocations: 0 / 0.5406 GB, free: 100.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0817/0.7732, allocations: 49.28 MB / 0.5887 GB, free: 56.28 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.19/13.96, allocations: 22.66 kB / 0.5887 GB, free: 56.26 MB / 446.1 MB " [Timeout remaining time 646] (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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 19.590403670910746]