Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001213/0.001213, allocations: 87.62 kB / 21.43 MB, free: 3.129 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.006056/0.006056, allocations: 164.6 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.8327/0.8327, allocations: 158.6 MB / 186.5 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] 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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 3.938 kB / 298.5 MB, free: 3.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.006e-05/1.126e-05, allocations: 2.281 kB / 298.5 MB, free: 3.488 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.1322/0.1322, allocations: 13.19 MB / 311.7 MB, free: 8.383 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00728/0.1394, allocations: 4.867 MB / 316.5 MB, free: 4.973 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001696/0.1411, allocations: 111.4 kB / 316.6 MB, free: 4.926 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001929/0.1431, allocations: 1.064 MB / 317.7 MB, free: 4.375 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002332/0.1454, allocations: 1.281 MB / 319 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001223/0.1466, allocations: 0.8892 MB / 319.9 MB, free: 2.988 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002533/0.1492, allocations: 3.777 MB / 323.6 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00152/0.1507, allocations: 1.806 MB / 325.5 MB, free: 12 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002361/0.153, allocations: 2.595 MB / 328 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00148/0.1545, allocations: 1.719 MB / 329.8 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004286/0.1549, allocations: 476.7 kB / 330.2 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008373/0.1558, allocations: 0.6727 MB / 330.9 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006675/0.1565, allocations: 1.176 MB / 332.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.1575, allocations: 1.375 MB / 333.5 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004047/0.1616, allocations: 6.305 MB / 339.8 MB, free: 5.426 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1616, allocations: 3.938 kB / 339.8 MB, free: 5.422 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1616, allocations: 0 / 339.8 MB, free: 5.422 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.764e-05/0.1616, allocations: 0 / 339.8 MB, free: 5.422 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.005122/0.1667, allocations: 4.209 MB / 344 MB, free: 1.148 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.1668, allocations: 19.97 kB / 344 MB, free: 1.129 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003643/0.1671, allocations: 443.3 kB / 344.4 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001342/0.1685, allocations: 0.6388 MB / 345.1 MB, free: 44 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002218/0.1707, allocations: 2.053 MB / 347.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.1708, allocations: 237 kB / 347.3 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002924/0.1711, allocations: 316.3 kB / 347.7 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004083/0.1752, allocations: 4.118 MB / 351.8 MB, free: 9.203 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.64e-05/0.1752, allocations: 3.984 kB / 351.8 MB, free: 9.199 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001952/0.1754, allocations: 132 kB / 351.9 MB, free: 9.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.241e-05/0.1755, allocations: 146.2 kB / 352.1 MB, free: 8.926 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003443/0.179, allocations: 3.366 MB / 355.4 MB, free: 5.551 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01069/0.1897, allocations: 11.77 MB / 367.2 MB, free: 9.391 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001962/0.1916, allocations: 1.674 MB / 368.9 MB, free: 7.754 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009643/0.1926, allocations: 0.9065 MB / 369.8 MB, free: 6.844 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002646/0.1952, allocations: 2.123 MB / 371.9 MB, free: 4.695 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.1953, allocations: 47.56 kB / 371.9 MB, free: 4.641 MB / 330.7 MB Notification: Performance of pre-optimization done (n=108): time 2.445e-06/0.1953, allocations: 0 / 371.9 MB, free: 4.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=142): time 0.006935/0.2022, allocations: 5.813 MB / 377.8 MB, free: 14.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.2022, allocations: 68.72 kB / 377.8 MB, free: 14.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/0.2041, allocations: 1.924 MB / 379.7 MB, free: 12.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.413e-05/0.2042, allocations: 49.7 kB / 379.8 MB, free: 12.69 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007002/0.2049, allocations: 1.544 MB / 381.3 MB, free: 11.13 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002412/0.2051, allocations: 0.5035 MB / 381.8 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003165/0.2055, allocations: 331.4 kB / 382.2 MB, free: 10.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.797e-05/0.2055, allocations: 309.1 kB / 382.5 MB, free: 9.992 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007838/0.2063, allocations: 0.7652 MB / 383.2 MB, free: 9.227 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.2073, allocations: 1.396 MB / 384.6 MB, free: 7.555 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002027/0.2094, allocations: 2.312 MB / 386.9 MB, free: 4.977 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.2094, allocations: 4 kB / 386.9 MB, free: 4.973 MB / 346.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002398/0.2118, allocations: 2.49 MB / 389.4 MB, free: 2.465 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.2118, allocations: 16 kB / 389.5 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.2118, allocations: 20 kB / 389.5 MB, free: 2.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002184/0.212, allocations: 118.5 kB / 389.6 MB, free: 2.305 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009414/0.213, allocations: 491.3 kB / 390.1 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006915/0.2137, allocations: 1.31 MB / 391.4 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006758/0.2143, allocations: 107.9 kB / 391.5 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-05/0.2144, allocations: 83.98 kB / 391.6 MB, free: 216 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001089/0.2155, allocations: 0.9891 MB / 392.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003048/0.2158, allocations: 210.6 kB / 392.8 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/0.2178, allocations: 1.958 MB / 394.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.2178, allocations: 15.94 kB / 394.7 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.2178, allocations: 4 kB / 394.7 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.2178, allocations: 7.969 kB / 394.7 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004589/0.2224, allocations: 4.651 MB / 399.4 MB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.2224, allocations: 3.938 kB / 399.4 MB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006933/0.2231, allocations: 315.5 kB / 399.7 MB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001716/0.2233, allocations: 106.7 kB / 399.8 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.307e-05/0.2233, allocations: 31.94 kB / 399.8 MB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006923/0.224, allocations: 1.26 MB / 401.1 MB, free: 6.406 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.224, allocations: 4 kB / 401.1 MB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00282/0.2268, allocations: 3.091 MB / 404.2 MB, free: 3.258 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005276/0.2274, allocations: 386.5 kB / 404.6 MB, free: 2.879 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/0.2275, allocations: 28 kB / 404.6 MB, free: 2.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004793/0.228, allocations: 75.91 kB / 404.7 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.2281, allocations: 97.08 kB / 404.8 MB, free: 2.684 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.115e-05/0.2282, allocations: 43.92 kB / 404.8 MB, free: 2.641 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001193/0.2293, allocations: 1.281 MB / 406.1 MB, free: 1.336 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2293, allocations: 4.062 kB / 406.1 MB, free: 1.332 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001278/0.2306, allocations: 0.5351 MB / 406.6 MB, free: 0.7969 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (141): * Single equations (assignments): 138 * 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 {(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.003295/0.2339, allocations: 3.7 MB / 410.3 MB, free: 13.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002063/0.236, allocations: 1.972 MB / 412.3 MB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.236, allocations: 4 kB / 412.3 MB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008931/0.2369, allocations: 0.9486 MB / 413.3 MB, free: 10.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.2381, allocations: 0.515 MB / 413.8 MB, free: 9.555 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0221/0.2602, allocations: 20.1 MB / 433.9 MB, free: 4.66 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001377/0.2616, allocations: 1.714 MB / 435.6 MB, free: 2.91 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001052/0.2626, allocations: 0.5092 MB / 436.1 MB, free: 2.398 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/0.2637, allocations: 1.184 MB / 437.3 MB, free: 1.215 MB / 394.7 MB Notification: Performance of SimCode: time 1.513e-06/0.2637, allocations: 0 / 437.3 MB, free: 1.215 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1743/0.4379, allocations: 52.67 MB / 489.9 MB, free: 137.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.459/8.897, allocations: 13.45 kB / 490 MB, free: 137.2 MB / 426.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable inertiaLoad.w from file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable speedSensor.flange.phi in file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable speedSensor.flange.phi from file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.800119368359447]