Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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.0007477/0.0007477, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008423/0.0008423, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8953/0.8953, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.344e-06/2.344e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.046e-05/2.28e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.006959/0.006982, allocations: 8.105 MB / 332.7 MB, free: 7.797 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004858/0.01184, allocations: 3.003 MB / 335.7 MB, free: 4.781 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007351/0.01258, allocations: 51.69 kB / 335.7 MB, free: 4.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.01367, allocations: 0.656 MB / 336.4 MB, free: 4.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001704/0.01537, allocations: 0.7918 MB / 337.2 MB, free: 3.273 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005056/0.01588, allocations: 311.4 kB / 337.5 MB, free: 2.969 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001506/0.01738, allocations: 2.22 MB / 339.7 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000787/0.01817, allocations: 0.8012 MB / 340.5 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009508/0.01912, allocations: 1.384 MB / 341.9 MB, free: 14.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007784/0.0199, allocations: 0.9741 MB / 342.9 MB, free: 13.53 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001786/0.02008, allocations: 232 kB / 343.1 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003418/0.02042, allocations: 327.8 kB / 343.4 MB, free: 12.98 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006595/0.02108, allocations: 0.705 MB / 344.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004858/0.02157, allocations: 0.7561 MB / 344.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001805/0.02337, allocations: 3.166 MB / 348 MB, free: 8.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.02337, allocations: 0 / 348 MB, free: 8.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.02338, allocations: 0 / 348 MB, free: 8.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.89e-05/0.02339, allocations: 0 / 348 MB, free: 8.34 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.002388/0.02578, allocations: 2.27 MB / 350.3 MB, free: 6.027 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.987e-05/0.02581, allocations: 12.03 kB / 350.3 MB, free: 6.016 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001936/0.02601, allocations: 224.4 kB / 350.5 MB, free: 5.785 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006079/0.02661, allocations: 243.5 kB / 350.8 MB, free: 5.547 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.02782, allocations: 1.175 MB / 351.9 MB, free: 4.328 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.982e-05/0.02788, allocations: 119.3 kB / 352.1 MB, free: 4.211 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/0.02803, allocations: 156.4 kB / 352.2 MB, free: 4.059 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.03008, allocations: 2.104 MB / 354.3 MB, free: 1.883 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/0.03011, allocations: 11.94 kB / 354.3 MB, free: 1.871 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.473e-05/0.03021, allocations: 63.98 kB / 354.4 MB, free: 1.809 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.777e-05/0.03026, allocations: 78.94 kB / 354.5 MB, free: 1.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00176/0.03202, allocations: 1.674 MB / 356.1 MB, free: 52 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00564/0.03766, allocations: 6.418 MB / 362.6 MB, free: 9.301 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005499/0.03821, allocations: 458 kB / 363 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.03848, allocations: 262.8 kB / 363.3 MB, free: 8.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000131/0.03861, allocations: 52.34 kB / 363.3 MB, free: 8.535 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.03863, allocations: 39.06 kB / 363.4 MB, free: 8.488 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 1.533e-06/0.03863, allocations: 0 / 363.4 MB, free: 8.488 MB / 330.7 MB Notification: Performance of matching and sorting (n=63): time 0.003928/0.04256, allocations: 2.91 MB / 366.3 MB, free: 5.547 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.0426, allocations: 64 kB / 366.3 MB, free: 5.473 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00141/0.04401, allocations: 1.683 MB / 368 MB, free: 3.781 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.04404, allocations: 37.7 kB / 368 MB, free: 3.738 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004701/0.04451, allocations: 1.049 MB / 369.1 MB, free: 2.68 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.04463, allocations: 254 kB / 369.3 MB, free: 2.43 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002563/0.04489, allocations: 315.3 kB / 369.7 MB, free: 2.113 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.548e-05/0.04496, allocations: 301.1 kB / 369.9 MB, free: 1.816 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005632/0.04552, allocations: 0.527 MB / 370.5 MB, free: 1.289 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.04667, allocations: 1.454 MB / 371.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/0.04817, allocations: 2.136 MB / 374.1 MB, free: 12.78 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.04818, allocations: 12 kB / 374.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.002007/0.05018, allocations: 2.167 MB / 376.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.05021, allocations: 16 kB / 376.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/0.05023, allocations: 36.88 kB / 376.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003162/0.05054, allocations: 230.4 kB / 376.5 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006144/0.05116, allocations: 391.3 kB / 376.9 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/0.05246, allocations: 1.736 MB / 378.6 MB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006144/0.05308, allocations: 143.7 kB / 378.8 MB, free: 7.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.488e-05/0.05315, allocations: 99.98 kB / 378.9 MB, free: 7.824 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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 (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000522/0.05367, allocations: 0.5828 MB / 379.5 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.0538, allocations: 170.9 kB / 379.6 MB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001144/0.05495, allocations: 1.085 MB / 380.7 MB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.05495, allocations: 8 kB / 380.7 MB, free: 5.941 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.05496, allocations: 0 / 380.7 MB, free: 5.941 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.05496, allocations: 11.86 kB / 380.7 MB, free: 5.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002532/0.0575, allocations: 2.556 MB / 383.3 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.0575, allocations: 4.047 kB / 383.3 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002549/0.05775, allocations: 123.8 kB / 383.4 MB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002423/0.058, allocations: 170.5 kB / 383.6 MB, free: 2.984 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.81e-05/0.05802, allocations: 15.98 kB / 383.6 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009131/0.05894, allocations: 1.67 MB / 385.3 MB, free: 1.188 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.05894, allocations: 8.094 kB / 385.3 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.06067, allocations: 1.635 MB / 386.9 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000291/0.06096, allocations: 234.8 kB / 387.1 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.097e-05/0.06105, allocations: 16.06 kB / 387.1 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003399/0.06139, allocations: 55.92 kB / 387.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.655e-05/0.06148, allocations: 44.36 kB / 387.2 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.621e-05/0.0615, allocations: 19.98 kB / 387.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009619/0.06247, allocations: 1.083 MB / 388.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.06247, allocations: 0 / 388.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008115/0.06328, allocations: 363.9 kB / 388.7 MB, free: 13.7 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (speed.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 (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(2,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.001904/0.06518, allocations: 2.252 MB / 391 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.06673, allocations: 1.413 MB / 392.4 MB, free: 9.973 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.06673, allocations: 0 / 392.4 MB, free: 9.973 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006871/0.06742, allocations: 0.5775 MB / 392.9 MB, free: 9.375 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009647/0.06838, allocations: 405 kB / 393.3 MB, free: 8.988 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01485/0.08323, allocations: 14.99 MB / 408.3 MB, free: 8.871 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006102/0.08384, allocations: 0.8821 MB / 409.2 MB, free: 7.957 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000575/0.08441, allocations: 354 kB / 409.6 MB, free: 7.605 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005099/0.08492, allocations: 0.6331 MB / 410.2 MB, free: 6.973 MB / 378.7 MB Notification: Performance of SimCode: time 1.183e-06/0.08492, allocations: 0 / 410.2 MB, free: 6.973 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0462/0.1311, allocations: 38.01 MB / 448.2 MB, free: 1.398 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.163/8.294, allocations: 4.062 kB / 448.2 MB, free: 1.395 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv --start-time 0 --stop-time 0.32 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable Time from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! Error: Could not read variable toSpacePhasor.y[1] in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable toSpacePhasor.y[1] from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! Error: Could not read variable toSpacePhasor.y[2] in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable toSpacePhasor.y[2] from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! Error: Could not read variable hallSensor.y in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable hallSensor.y from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.245252067223191]