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.001474/0.001474, allocations: 131.4 kB / 17.8 MB, free: 5.219 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.001595/0.001595, allocations: 211.6 kB / 20.75 MB, free: 2.27 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.519/1.519, allocations: 230.4 MB / 254 MB, free: 15.17 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.002087/0.002087, allocations: 67.89 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1111, allocations: 53.37 MB / 426.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.0142/0.1253, allocations: 11.01 MB / 437.4 MB, free: 9.562 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008934/0.1343, allocations: 3.696 MB / 441.1 MB, free: 5.852 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002083/0.1364, allocations: 83.44 kB / 441.1 MB, free: 5.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002822/0.1392, allocations: 0.8775 MB / 442 MB, free: 4.887 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00375/0.1429, allocations: 0.9048 MB / 442.9 MB, free: 3.977 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001733/0.1447, allocations: 467.3 kB / 443.4 MB, free: 3.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004633/0.1493, allocations: 2.948 MB / 446.3 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2308/0.3801, allocations: 1.972 MB / 448.3 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002035/0.3821, allocations: 1.416 MB / 449.7 MB, free: 9.184 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002159/0.3843, allocations: 1.802 MB / 451.5 MB, free: 8.895 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005593/0.3849, allocations: 372.8 kB / 451.9 MB, free: 8.895 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009871/0.3858, allocations: 485.4 kB / 452.4 MB, free: 8.895 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001039/0.3869, allocations: 1.084 MB / 453.4 MB, free: 8.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.3887, allocations: 1.672 MB / 455.1 MB, free: 8.324 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006297/0.395, allocations: 4.911 MB / 460 MB, free: 7.512 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.395, allocations: 1.062 kB / 460 MB, free: 7.512 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.395, allocations: 0 / 460 MB, free: 7.512 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000176/0.3952, allocations: 0 / 460 MB, free: 7.512 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.007913/0.4031, allocations: 3.485 MB / 463.5 MB, free: 5.535 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.4031, allocations: 9.812 kB / 463.5 MB, free: 5.535 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000515/0.4036, allocations: 367.3 kB / 463.9 MB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001043/0.4047, allocations: 364.9 kB / 464.2 MB, free: 5.148 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00318/0.4079, allocations: 1.831 MB / 466.1 MB, free: 4.203 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.408, allocations: 196.8 kB / 466.3 MB, free: 4.113 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003865/0.4084, allocations: 251.5 kB / 466.5 MB, free: 4.027 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005347/0.4137, allocations: 3.283 MB / 469.8 MB, free: 2.695 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.275e-05/0.4138, allocations: 6.906 kB / 469.8 MB, free: 2.695 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002458/0.414, allocations: 104.8 kB / 469.9 MB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001604/0.4142, allocations: 124.5 kB / 470 MB, free: 2.605 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004463/0.4187, allocations: 2.754 MB / 472.8 MB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01757/0.4362, allocations: 10.4 MB / 483.2 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001933/0.4382, allocations: 1.294 MB / 484.5 MB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001243/0.4394, allocations: 0.7022 MB / 485.2 MB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003236/0.4397, allocations: 207.8 kB / 485.4 MB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/0.4398, allocations: 39.44 kB / 485.4 MB, free: 8.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.906e-06/0.4398, allocations: 1.781 kB / 485.4 MB, free: 8.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01528/0.4551, allocations: 6.952 MB / 492.4 MB, free: 4.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.4551, allocations: 64.41 kB / 492.4 MB, free: 4.496 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002846/0.458, allocations: 1.794 MB / 494.2 MB, free: 2.703 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.87e-05/0.4581, allocations: 45.7 kB / 494.3 MB, free: 2.652 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001029/0.4591, allocations: 1.305 MB / 495.6 MB, free: 1.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003933/0.4595, allocations: 453.3 kB / 496 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000499/0.46, allocations: 295.5 kB / 496.3 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.4601, allocations: 309.1 kB / 496.6 MB, free: 308 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/0.4613, allocations: 0.7745 MB / 497.4 MB, free: 15.53 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001759/0.4631, allocations: 1.295 MB / 498.7 MB, free: 14.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002985/0.4661, allocations: 2.207 MB / 0.4891 GB, free: 11.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/0.4661, allocations: 9.562 kB / 0.4892 GB, free: 11.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004343/0.4704, allocations: 2.478 MB / 0.4916 GB, free: 9.238 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.4705, allocations: 12.62 kB / 0.4916 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.888e-05/0.4705, allocations: 24.02 kB / 0.4916 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006692/0.4712, allocations: 243 kB / 0.4918 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.4727, allocations: 416.4 kB / 0.4922 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003095/0.4758, allocations: 3.237 MB / 0.4954 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001739/0.4776, allocations: 129.9 kB / 0.4955 GB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001322/0.4777, allocations: 71.98 kB / 0.4956 GB, free: 4.883 MB / 398.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.001597/0.4793, allocations: 0.8288 MB / 0.4964 GB, free: 4.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004105/0.4797, allocations: 194.8 kB / 0.4966 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003624/0.4833, allocations: 2.038 MB / 0.4986 GB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.4833, allocations: 13.5 kB / 0.4986 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.4834, allocations: 4 kB / 0.4986 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.4834, allocations: 7.969 kB / 0.4986 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007991/0.4914, allocations: 4.737 MB / 0.5032 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.4914, allocations: 1.922 kB / 0.5032 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.4925, allocations: 268.2 kB / 0.5035 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005587/0.493, allocations: 206.1 kB / 0.5037 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.006e-05/0.4931, allocations: 24 kB / 0.5037 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002913/0.496, allocations: 3.216 MB / 0.5068 GB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.496, allocations: 0 / 0.5068 GB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004867/0.5009, allocations: 3.14 MB / 0.5099 GB, free: 5.871 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009839/0.5019, allocations: 435.7 kB / 0.5103 GB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002389/0.5021, allocations: 24 kB / 0.5104 GB, free: 5.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009554/0.5031, allocations: 107.9 kB / 0.5105 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.5032, allocations: 83.61 kB / 0.5105 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.87e-05/0.5033, allocations: 32 kB / 0.5106 GB, free: 5.188 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001932/0.5053, allocations: 1.22 MB / 0.5118 GB, free: 3.977 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5053, allocations: 0 / 0.5118 GB, free: 3.977 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00172/0.507, allocations: 493.2 kB / 0.5122 GB, free: 3.496 MB / 414.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.005369/0.5123, allocations: 3.789 MB / 0.5159 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003762/0.5161, allocations: 2.267 MB / 0.5181 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.5161, allocations: 0 / 0.5181 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00195/0.5181, allocations: 1.275 MB / 0.5194 GB, free: 12.07 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002541/0.5206, allocations: 0.4912 MB / 0.5199 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03057/0.5512, allocations: 18.79 MB / 0.5382 GB, free: 8.223 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00206/0.5532, allocations: 2.01 MB / 0.5402 GB, free: 6.176 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001598/0.5548, allocations: 0.5015 MB / 0.5407 GB, free: 5.672 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001501/0.5563, allocations: 1.007 MB / 0.5416 GB, free: 4.664 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.5563, allocations: 0 / 0.5416 GB, free: 4.664 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1072/0.6635, allocations: 46.48 MB / 0.587 GB, free: 6.629 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/14.18, allocations: 11.52 kB / 0.587 GB, free: 6.621 MB / 494.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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] "Error: Could not read variable smpm.is[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable inertiaLoad.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable inertiaLoad.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable multiSensor.flange_a.phi in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable multiSensor.flange_a.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.19514517695643]