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.001176/0.001176, allocations: 87.62 kB / 21.43 MB, free: 3.137 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.003473/0.003473, allocations: 159.4 kB / 24.69 MB, free: 9.422 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.8355/0.8355, allocations: 158.6 MB / 186.5 MB, free: 3.047 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.283e-06/1.283e-06, allocations: 0 / 298.5 MB, free: 3.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.131e-05/1.26e-05, allocations: 2.281 kB / 298.5 MB, free: 3.492 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.1186/0.1186, allocations: 13.2 MB / 311.7 MB, free: 8.371 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007739/0.1263, allocations: 4.869 MB / 316.5 MB, free: 4.953 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001608/0.1279, allocations: 111.6 kB / 316.6 MB, free: 4.906 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002286/0.1302, allocations: 1.06 MB / 317.7 MB, free: 4.359 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003175/0.1334, allocations: 1.278 MB / 319 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001583/0.135, allocations: 0.9005 MB / 319.9 MB, free: 2.969 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00366/0.1386, allocations: 3.772 MB / 323.7 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002113/0.1408, allocations: 1.807 MB / 325.5 MB, free: 16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002896/0.1437, allocations: 2.601 MB / 328.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002268/0.1459, allocations: 1.718 MB / 329.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009069/0.1468, allocations: 476.7 kB / 330.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001009/0.1478, allocations: 0.674 MB / 330.9 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007215/0.1486, allocations: 1.176 MB / 332.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001726/0.1503, allocations: 1.368 MB / 333.5 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004694/0.155, allocations: 6.306 MB / 339.8 MB, free: 5.414 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.155, allocations: 0 / 339.8 MB, free: 5.414 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.155, allocations: 4 kB / 339.8 MB, free: 5.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001392/0.1551, allocations: 0 / 339.8 MB, free: 5.41 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.006853/0.162, allocations: 4.213 MB / 344 MB, free: 1.133 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.162, allocations: 11.98 kB / 344 MB, free: 1.121 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004109/0.1624, allocations: 451.3 kB / 344.4 MB, free: 0.668 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001491/0.1639, allocations: 0.6349 MB / 345.1 MB, free: 32 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00242/0.1663, allocations: 2.054 MB / 347.1 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.1665, allocations: 234.7 kB / 347.4 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003092/0.1668, allocations: 312.3 kB / 347.7 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004708/0.1715, allocations: 4.118 MB / 351.8 MB, free: 9.195 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.133e-05/0.1715, allocations: 4 kB / 351.8 MB, free: 9.191 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/0.1718, allocations: 131.9 kB / 351.9 MB, free: 9.062 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001122/0.1719, allocations: 146.2 kB / 352.1 MB, free: 8.918 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003936/0.1758, allocations: 3.372 MB / 355.4 MB, free: 5.539 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01245/0.1883, allocations: 11.78 MB / 367.2 MB, free: 9.375 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002188/0.1904, allocations: 1.675 MB / 368.9 MB, free: 7.738 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.1915, allocations: 0.8987 MB / 369.8 MB, free: 6.836 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00284/0.1943, allocations: 2.119 MB / 371.9 MB, free: 4.691 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.1944, allocations: 43.56 kB / 371.9 MB, free: 4.641 MB / 330.7 MB Notification: Performance of pre-optimization done (n=108): time 2.645e-06/0.1944, allocations: 7.938 kB / 371.9 MB, free: 4.633 MB / 330.7 MB Notification: Performance of matching and sorting (n=142): time 0.007537/0.2019, allocations: 5.821 MB / 377.8 MB, free: 14.78 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.2019, allocations: 68.72 kB / 377.8 MB, free: 14.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001981/0.2039, allocations: 1.924 MB / 379.8 MB, free: 12.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.339e-05/0.204, allocations: 49.7 kB / 379.8 MB, free: 12.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008216/0.2048, allocations: 1.536 MB / 381.3 MB, free: 11.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003481/0.2052, allocations: 0.5074 MB / 381.8 MB, free: 10.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003683/0.2055, allocations: 331.4 kB / 382.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.2056, allocations: 305.1 kB / 382.5 MB, free: 9.984 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000897/0.2065, allocations: 0.7652 MB / 383.2 MB, free: 9.219 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00123/0.2078, allocations: 1.4 MB / 384.6 MB, free: 7.543 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002313/0.2101, allocations: 2.308 MB / 386.9 MB, free: 4.969 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.227e-05/0.2101, allocations: 7.938 kB / 386.9 MB, free: 4.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003016/0.2131, allocations: 2.486 MB / 389.4 MB, free: 2.457 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.395e-05/0.2131, allocations: 16 kB / 389.4 MB, free: 2.441 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.352e-05/0.2132, allocations: 16 kB / 389.5 MB, free: 2.426 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002424/0.2134, allocations: 127.1 kB / 389.6 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.2144, allocations: 495.1 kB / 390.1 MB, free: 1.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.2155, allocations: 1.306 MB / 391.4 MB, free: 396 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007845/0.2163, allocations: 111.9 kB / 391.5 MB, free: 284 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.804e-05/0.2164, allocations: 83.98 kB / 391.6 MB, free: 200 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.001186/0.2175, allocations: 0.9851 MB / 392.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.2177, allocations: 210.6 kB / 392.8 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002222/0.22, allocations: 1.958 MB / 394.7 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.22, allocations: 15.94 kB / 394.7 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.22, allocations: 4 kB / 394.7 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.22, allocations: 11.97 kB / 394.8 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004826/0.2248, allocations: 4.651 MB / 399.4 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.2248, allocations: 256 / 399.4 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000714/0.2255, allocations: 315.6 kB / 399.7 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001757/0.2257, allocations: 106.4 kB / 399.8 MB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.471e-05/0.2258, allocations: 28 kB / 399.8 MB, free: 7.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006364/0.2264, allocations: 1.263 MB / 401.1 MB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2264, allocations: 7.938 kB / 401.1 MB, free: 6.387 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002948/0.2294, allocations: 3.079 MB / 404.2 MB, free: 3.254 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005071/0.2299, allocations: 386.5 kB / 404.6 MB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/0.23, allocations: 31.98 kB / 404.6 MB, free: 2.844 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004939/0.2305, allocations: 80.12 kB / 404.7 MB, free: 2.766 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.2306, allocations: 97.02 kB / 404.8 MB, free: 2.672 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.427e-05/0.2307, allocations: 39.98 kB / 404.8 MB, free: 2.633 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001254/0.2319, allocations: 1.285 MB / 406.1 MB, free: 1.324 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2319, allocations: 3.938 kB / 406.1 MB, free: 1.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001099/0.233, allocations: 0.5351 MB / 406.6 MB, free: 0.7852 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.003357/0.2364, allocations: 3.7 MB / 410.3 MB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.2386, allocations: 1.972 MB / 412.3 MB, free: 11.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.2386, allocations: 0 / 412.3 MB, free: 11.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000962/0.2395, allocations: 0.9572 MB / 413.3 MB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001321/0.2409, allocations: 0.5105 MB / 413.8 MB, free: 9.543 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02386/0.2647, allocations: 20.1 MB / 433.9 MB, free: 4.641 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001335/0.2661, allocations: 1.71 MB / 435.6 MB, free: 2.895 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009849/0.267, allocations: 0.5092 MB / 436.1 MB, free: 2.383 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/0.2681, allocations: 1.184 MB / 437.3 MB, free: 1.199 MB / 394.7 MB Notification: Performance of SimCode: time 8.42e-07/0.2681, allocations: 0 / 437.3 MB, free: 1.199 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2105/0.4786, allocations: 52.67 MB / 490 MB, free: 134.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.434/8.913, allocations: 8.594 kB / 490 MB, free: 134.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 12.824089689180255]