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.002169/0.002169, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002332/0.002332, allocations: 202.1 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.419/1.419, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001522/0.001522, allocations: 51.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2478, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01106/0.2588, allocations: 8.077 MB / 439.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006165/0.265, allocations: 2.987 MB / 442.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.266, allocations: 51.69 kB / 442.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001735/0.2678, allocations: 0.6523 MB / 442.9 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002073/0.2698, allocations: 0.7768 MB / 443.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007368/0.2706, allocations: 319.5 kB / 443.9 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002415/0.273, allocations: 2.142 MB / 446.1 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001292/0.2743, allocations: 0.8364 MB / 446.9 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00142/0.2757, allocations: 0.9538 MB / 447.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001656/0.2774, allocations: 1.175 MB / 449.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000392/0.2777, allocations: 232 kB / 449.3 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007153/0.2785, allocations: 331.8 kB / 449.6 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007315/0.2792, allocations: 0.6894 MB / 450.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001074/0.2803, allocations: 0.8828 MB / 451.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003498/0.2838, allocations: 3.168 MB / 454.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2838, allocations: 0 / 454.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2838, allocations: 0 / 454.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.773e-05/0.2838, allocations: 0 / 454.3 MB, free: 15.25 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: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.004557/0.2884, allocations: 2.289 MB / 456.6 MB, free: 12.92 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.2884, allocations: 12.03 kB / 456.6 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003172/0.2887, allocations: 236.4 kB / 456.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006467/0.2894, allocations: 239.6 kB / 457.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002347/0.2917, allocations: 1.168 MB / 458.3 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.2918, allocations: 127.1 kB / 458.4 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002685/0.2921, allocations: 152 kB / 458.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003646/0.2958, allocations: 2.104 MB / 460.7 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.458e-05/0.2958, allocations: 15.81 kB / 460.7 MB, free: 8.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001567/0.296, allocations: 64 kB / 460.7 MB, free: 8.695 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/0.2961, allocations: 78.94 kB / 460.8 MB, free: 8.617 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002969/0.2991, allocations: 1.674 MB / 462.5 MB, free: 6.938 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009945/0.309, allocations: 6.411 MB / 468.9 MB, free: 192 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008978/0.3099, allocations: 453.4 kB / 469.3 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004591/0.3104, allocations: 264.7 kB / 469.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001841/0.3105, allocations: 44.34 kB / 469.6 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.3106, allocations: 39 kB / 469.7 MB, free: 15.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 1.954e-06/0.3106, allocations: 0 / 469.7 MB, free: 15.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=63): time 0.006818/0.3174, allocations: 2.911 MB / 472.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.3174, allocations: 64.06 kB / 472.7 MB, free: 12.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002483/0.3199, allocations: 1.683 MB / 474.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.017e-05/0.32, allocations: 37.7 kB / 474.4 MB, free: 10.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009396/0.3209, allocations: 1.064 MB / 475.4 MB, free: 9.566 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002451/0.3212, allocations: 250 kB / 475.7 MB, free: 9.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004629/0.3216, allocations: 319.3 kB / 476 MB, free: 9.004 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.3218, allocations: 305.1 kB / 476.3 MB, free: 8.703 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009567/0.3227, allocations: 0.5231 MB / 476.8 MB, free: 8.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001737/0.3245, allocations: 1.454 MB / 478.3 MB, free: 6.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002996/0.3275, allocations: 2.136 MB / 480.4 MB, free: 3.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.955e-05/0.3275, allocations: 8 kB / 480.4 MB, free: 3.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003993/0.3315, allocations: 2.163 MB / 482.6 MB, free: 1.484 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.833e-05/0.3315, allocations: 20 kB / 482.6 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.473e-05/0.3316, allocations: 32 kB / 482.6 MB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005833/0.3321, allocations: 231 kB / 482.8 MB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/0.3334, allocations: 403.2 kB / 483.2 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001944/0.3353, allocations: 1.732 MB / 485 MB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.3366, allocations: 147.7 kB / 485.1 MB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001434/0.3368, allocations: 92 kB / 485.2 MB, free: 14.72 MB / 398.1 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.0009139/0.3377, allocations: 0.5905 MB / 485.8 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002812/0.338, allocations: 159 kB / 486 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002117/0.3401, allocations: 1.097 MB / 487.1 MB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.3401, allocations: 4 kB / 487.1 MB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.3401, allocations: 4 kB / 487.1 MB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.3401, allocations: 7.922 kB / 487.1 MB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004826/0.3449, allocations: 2.567 MB / 489.6 MB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.3449, allocations: 0 / 489.6 MB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000501/0.3454, allocations: 119.8 kB / 489.8 MB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004529/0.3459, allocations: 178.5 kB / 489.9 MB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.073e-05/0.3459, allocations: 12 kB / 489.9 MB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001719/0.3476, allocations: 1.678 MB / 491.6 MB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.3477, allocations: 7.875 kB / 491.6 MB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002746/0.3504, allocations: 1.647 MB / 493.3 MB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006394/0.351, allocations: 230.9 kB / 493.5 MB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.3512, allocations: 12 kB / 493.5 MB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006242/0.3518, allocations: 52 kB / 493.6 MB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.352, allocations: 60.28 kB / 493.6 MB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.362e-05/0.352, allocations: 16 kB / 493.6 MB, free: 6 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001629/0.3536, allocations: 1.079 MB / 494.7 MB, free: 4.926 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3536, allocations: 0 / 494.7 MB, free: 4.926 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001368/0.355, allocations: 363.9 kB / 495.1 MB, free: 4.57 MB / 398.1 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.003292/0.3583, allocations: 2.257 MB / 497.3 MB, free: 2.266 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002857/0.3612, allocations: 1.409 MB / 498.7 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3612, allocations: 4 kB / 498.7 MB, free: 0.8398 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.3623, allocations: 0.5814 MB / 499.3 MB, free: 248 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001852/0.3641, allocations: 400.6 kB / 499.7 MB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02218/0.3863, allocations: 14.99 MB / 0.5026 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/0.3874, allocations: 0.8859 MB / 0.5035 GB, free: 14.83 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001019/0.3884, allocations: 358 kB / 0.5038 GB, free: 14.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000874/0.3893, allocations: 0.636 MB / 0.5045 GB, free: 13.84 MB / 430.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3893, allocations: 0 / 0.5045 GB, free: 13.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2636/0.6528, allocations: 38.67 MB / 0.5422 GB, free: 104.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.27, allocations: 2.062 kB / 0.5422 GB, free: 104.8 MB / 446.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/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: 15.914325967984041]