Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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.0008778/0.0008778, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008565/0.0008565, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8762/0.8762, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.885e-05/2.014e-05, allocations: 6.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.006794/0.006814, allocations: 8.091 MB / 332.6 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004836/0.01165, allocations: 2.999 MB / 335.6 MB, free: 4.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007701/0.01242, allocations: 55.62 kB / 335.7 MB, free: 4.695 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.0136, allocations: 0.656 MB / 336.3 MB, free: 4.035 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001579/0.01518, allocations: 0.7839 MB / 337.1 MB, free: 3.246 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005055/0.01569, allocations: 327.4 kB / 337.4 MB, free: 2.926 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002189/0.01788, allocations: 2.217 MB / 339.6 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007867/0.01866, allocations: 0.7973 MB / 340.4 MB, free: 15.85 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001304/0.01997, allocations: 1.384 MB / 341.8 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009771/0.02095, allocations: 0.9779 MB / 342.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002428/0.02119, allocations: 236 kB / 343 MB, free: 13.25 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000463/0.02165, allocations: 319.8 kB / 343.3 MB, free: 12.94 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004304/0.02208, allocations: 0.7166 MB / 344.1 MB, free: 12.22 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005341/0.02262, allocations: 0.7405 MB / 344.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00226/0.02488, allocations: 3.174 MB / 348 MB, free: 8.297 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.02488, allocations: 4 kB / 348 MB, free: 8.293 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.02488, allocations: 0 / 348 MB, free: 8.293 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.549e-05/0.02491, allocations: 0 / 348 MB, free: 8.293 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.002627/0.02753, allocations: 2.258 MB / 350.2 MB, free: 5.992 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.02757, allocations: 11.98 kB / 350.3 MB, free: 5.98 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002051/0.02778, allocations: 236.4 kB / 350.5 MB, free: 5.738 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003988/0.02818, allocations: 247.5 kB / 350.7 MB, free: 5.496 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.02946, allocations: 1.167 MB / 351.9 MB, free: 4.285 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.953e-05/0.02952, allocations: 119.5 kB / 352 MB, free: 4.168 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.02967, allocations: 148.4 kB / 352.2 MB, free: 4.023 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002402/0.03207, allocations: 2.116 MB / 354.3 MB, free: 1.836 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.439e-05/0.03211, allocations: 7.891 kB / 354.3 MB, free: 1.828 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.62e-05/0.0322, allocations: 64 kB / 354.3 MB, free: 1.766 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.663e-05/0.03226, allocations: 74.94 kB / 354.4 MB, free: 1.691 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/0.03403, allocations: 1.674 MB / 356.1 MB, free: 12 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005838/0.03986, allocations: 6.43 MB / 362.5 MB, free: 9.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005892/0.04045, allocations: 454.2 kB / 363 MB, free: 8.801 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002781/0.04073, allocations: 264 kB / 363.2 MB, free: 8.543 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001389/0.04087, allocations: 44.47 kB / 363.3 MB, free: 8.496 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.0409, allocations: 39.06 kB / 363.3 MB, free: 8.449 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 2.003e-06/0.0409, allocations: 0 / 363.3 MB, free: 8.449 MB / 330.7 MB Notification: Performance of matching and sorting (n=63): time 0.00376/0.04466, allocations: 2.906 MB / 366.2 MB, free: 5.512 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.0447, allocations: 64 kB / 366.3 MB, free: 5.438 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001675/0.04637, allocations: 1.69 MB / 368 MB, free: 3.738 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.04641, allocations: 37.7 kB / 368 MB, free: 3.695 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004728/0.04688, allocations: 1.057 MB / 369.1 MB, free: 2.629 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.047, allocations: 246 kB / 369.3 MB, free: 2.387 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002535/0.04725, allocations: 311.4 kB / 369.6 MB, free: 2.074 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.023e-05/0.04732, allocations: 305.1 kB / 369.9 MB, free: 1.773 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005518/0.04787, allocations: 0.5231 MB / 370.4 MB, free: 1.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008997/0.04877, allocations: 1.458 MB / 371.9 MB, free: 15.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001866/0.05064, allocations: 2.132 MB / 374 MB, free: 12.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.05065, allocations: 12 kB / 374 MB, free: 12.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.002084/0.05273, allocations: 2.171 MB / 376.2 MB, free: 10.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.05276, allocations: 20 kB / 376.2 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/0.05278, allocations: 32 kB / 376.2 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003462/0.05313, allocations: 222.4 kB / 376.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006184/0.05374, allocations: 399.2 kB / 376.8 MB, free: 9.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.05483, allocations: 1.736 MB / 378.6 MB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006406/0.05547, allocations: 147.7 kB / 378.7 MB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.961e-05/0.05556, allocations: 96 kB / 378.8 MB, free: 7.785 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.0005598/0.05612, allocations: 0.5946 MB / 379.4 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.05627, allocations: 166.9 kB / 379.6 MB, free: 7.016 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001485/0.05775, allocations: 1.093 MB / 380.7 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.05776, allocations: 4 kB / 380.7 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.05777, allocations: 4 kB / 380.7 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.05778, allocations: 0 / 380.7 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00277/0.06055, allocations: 2.552 MB / 383.2 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.06055, allocations: 0 / 383.2 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002741/0.06082, allocations: 123.8 kB / 383.4 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002539/0.06108, allocations: 166.4 kB / 383.5 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.06111, allocations: 16 kB / 383.5 MB, free: 2.941 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.06212, allocations: 1.67 MB / 385.2 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.06212, allocations: 4.031 kB / 385.2 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.06377, allocations: 1.646 MB / 386.9 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000326/0.0641, allocations: 238.8 kB / 387.1 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.225e-05/0.06419, allocations: 20 kB / 387.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003366/0.06453, allocations: 47.94 kB / 387.2 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.837e-05/0.06462, allocations: 48.41 kB / 387.2 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.669e-05/0.06465, allocations: 24.06 kB / 387.2 MB, free: 15.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001367/0.06602, allocations: 1.083 MB / 388.3 MB, free: 14.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.06602, allocations: 0 / 388.3 MB, free: 14.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008812/0.0669, allocations: 356 kB / 388.7 MB, free: 13.67 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.001951/0.06885, allocations: 2.253 MB / 390.9 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.07042, allocations: 1.405 MB / 392.3 MB, free: 9.941 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.07042, allocations: 4.188 kB / 392.3 MB, free: 9.938 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005858/0.071, allocations: 0.5809 MB / 392.9 MB, free: 9.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009805/0.07198, allocations: 406 kB / 393.3 MB, free: 8.953 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01606/0.08805, allocations: 14.99 MB / 408.3 MB, free: 8.836 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006331/0.08868, allocations: 0.8782 MB / 409.2 MB, free: 7.926 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005998/0.08928, allocations: 354 kB / 409.5 MB, free: 7.574 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005445/0.08982, allocations: 0.6409 MB / 410.1 MB, free: 6.934 MB / 378.7 MB Notification: Performance of SimCode: time 8.21e-07/0.08982, allocations: 0 / 410.1 MB, free: 6.934 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05012/0.1399, allocations: 38 MB / 448.1 MB, free: 1.305 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.021/8.161, allocations: 7.938 kB / 448.1 MB, free: 1.297 MB / 410.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable Time from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! Error: Could not read variable toSpacePhasor.y[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable toSpacePhasor.y[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! Error: Could not read variable toSpacePhasor.y[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable toSpacePhasor.y[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! Error: Could not read variable hallSensor.y in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable hallSensor.y from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.111768594942987]