Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001905/0.001905, allocations: 112.4 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002402/0.002402, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002758/0.002758, allocations: 59.92 kB / 347.2 MB, free: 10.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2628, allocations: 49.15 MB / 396.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01019/0.273, allocations: 10.98 MB / 407.3 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007295/0.2802, allocations: 3.693 MB / 411 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00161/0.2819, allocations: 75.09 kB / 411.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002318/0.2842, allocations: 0.882 MB / 412 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003199/0.2874, allocations: 0.9199 MB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001118/0.2885, allocations: 474.9 kB / 413.4 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004166/0.2927, allocations: 2.959 MB / 416.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002203/0.2949, allocations: 1.53 MB / 417.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002301/0.2972, allocations: 1.4 MB / 419.3 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003033/0.3002, allocations: 1.794 MB / 421.1 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005598/0.3008, allocations: 373.5 kB / 421.4 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001013/0.3018, allocations: 486.4 kB / 421.9 MB, free: 8.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001116/0.3029, allocations: 1.09 MB / 423 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001912/0.3048, allocations: 1.672 MB / 424.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005918/0.3107, allocations: 4.902 MB / 429.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3107, allocations: 0 / 429.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.3107, allocations: 0 / 429.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001666/0.3109, allocations: 0 / 429.6 MB, free: 1.98 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.00803/0.3189, allocations: 3.39 MB / 433 MB, free: 14.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.319, allocations: 15.98 kB / 433 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005163/0.3195, allocations: 371 kB / 433.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008322/0.3203, allocations: 358.8 kB / 433.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003303/0.3236, allocations: 1.627 MB / 435.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/0.3238, allocations: 205.1 kB / 435.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003718/0.3242, allocations: 244 kB / 435.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005492/0.3296, allocations: 3.272 MB / 439 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.948e-05/0.3297, allocations: 15.94 kB / 439 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002275/0.3299, allocations: 104 kB / 439.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001443/0.3301, allocations: 124.9 kB / 439.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004743/0.3348, allocations: 2.748 MB / 442 MB, free: 5.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01619/0.351, allocations: 10.25 MB / 452.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001859/0.3529, allocations: 1.062 MB / 453.3 MB, free: 9.645 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001224/0.3541, allocations: 0.6954 MB / 454 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002333/0.3543, allocations: 46.05 kB / 454.1 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.76e-05/0.3544, allocations: 47.55 kB / 454.1 MB, free: 8.848 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.145e-06/0.3544, allocations: 0 / 454.1 MB, free: 8.848 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01552/0.3699, allocations: 6.777 MB / 460.9 MB, free: 2.031 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.37, allocations: 68.41 kB / 461 MB, free: 1.953 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00267/0.3726, allocations: 1.797 MB / 462.8 MB, free: 160 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.999e-05/0.3727, allocations: 45.7 kB / 462.8 MB, free: 108 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/0.3738, allocations: 1.302 MB / 464.1 MB, free: 14.79 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003836/0.3742, allocations: 448.3 kB / 464.5 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004736/0.3746, allocations: 295.4 kB / 464.8 MB, free: 14.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3748, allocations: 313 kB / 465.1 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.376, allocations: 0.7691 MB / 465.9 MB, free: 12.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001696/0.3777, allocations: 1.301 MB / 467.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003139/0.3808, allocations: 2.219 MB / 469.4 MB, free: 8.992 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.836e-06/0.3809, allocations: 4 kB / 469.4 MB, free: 8.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004331/0.3852, allocations: 2.479 MB / 471.9 MB, free: 6.488 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/0.3852, allocations: 12 kB / 471.9 MB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.702e-05/0.3852, allocations: 20 kB / 471.9 MB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006387/0.3859, allocations: 243.5 kB / 472.2 MB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.3873, allocations: 415.3 kB / 472.6 MB, free: 5.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002999/0.3903, allocations: 3.027 MB / 475.6 MB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.3917, allocations: 139.8 kB / 475.7 MB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/0.3919, allocations: 71.98 kB / 475.8 MB, free: 2.332 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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.3934, allocations: 0.8172 MB / 476.6 MB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000345/0.3937, allocations: 194.7 kB / 476.8 MB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003615/0.3973, allocations: 2.035 MB / 478.9 MB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/0.3973, allocations: 12 kB / 478.9 MB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.475e-06/0.3973, allocations: 3.984 kB / 478.9 MB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.3973, allocations: 7.922 kB / 478.9 MB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008356/0.4057, allocations: 4.705 MB / 483.6 MB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.4057, allocations: 4 kB / 483.6 MB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/0.4068, allocations: 263.5 kB / 483.8 MB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005554/0.4074, allocations: 203.5 kB / 484 MB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.981e-05/0.4075, allocations: 27.94 kB / 484.1 MB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002921/0.4104, allocations: 3.015 MB / 487.1 MB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.4104, allocations: 4.031 kB / 487.1 MB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005039/0.4154, allocations: 3.132 MB / 490.2 MB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.4165, allocations: 350.6 kB / 490.6 MB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002467/0.4167, allocations: 31.92 kB / 490.6 MB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009105/0.4176, allocations: 91.88 kB / 490.7 MB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.4178, allocations: 88.84 kB / 490.8 MB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.767e-05/0.4179, allocations: 35.98 kB / 490.8 MB, free: 2.906 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001965/0.4199, allocations: 1.22 MB / 492 MB, free: 1.695 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4199, allocations: 0 / 492 MB, free: 1.695 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001646/0.4215, allocations: 487.9 kB / 492.5 MB, free: 1.219 MB / 398.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 (120): * Single equations (assignments): 116 * 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.005489/0.427, allocations: 3.768 MB / 496.3 MB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003904/0.4309, allocations: 2.113 MB / 498.4 MB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.4309, allocations: 0 / 498.4 MB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001946/0.4328, allocations: 1.122 MB / 499.5 MB, free: 10.08 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002596/0.4354, allocations: 0.4911 MB / 500 MB, free: 9.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03278/0.4682, allocations: 18.79 MB / 0.5066 GB, free: 6.051 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002184/0.4704, allocations: 2.01 MB / 0.5086 GB, free: 4.004 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001714/0.4721, allocations: 0.496 MB / 0.5091 GB, free: 3.504 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001504/0.4736, allocations: 1.007 MB / 0.5101 GB, free: 2.496 MB / 430.1 MB Notification: Performance of SimCode: time 1.442e-06/0.4736, allocations: 3.938 kB / 0.5101 GB, free: 2.492 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1087/0.5823, allocations: 47.56 MB / 0.5565 GB, free: 2.805 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/15.12, allocations: 7.938 kB / 0.5565 GB, free: 2.797 MB / 478.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaLoad.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable inertiaLoad.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable speedSensor.flange.phi in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable speedSensor.flange.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.20150682199892]