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.004931/0.004931, allocations: 110.5 kB / 21.97 MB, free: 5.25 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.001462/0.001462, allocations: 205.1 kB / 25.27 MB, free: 3.238 MB / 14.72 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 1.336/1.336, allocations: 207.6 MB / 236 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 178] 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 55.94 kB / 348 MB, free: 10 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2554, allocations: 49.16 MB / 397.2 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01431/0.2697, allocations: 15.24 MB / 412.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01199/0.2817, allocations: 5.15 MB / 417.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004826/0.2865, allocations: 111.7 kB / 417.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004494/0.291, allocations: 1.129 MB / 418.8 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005869/0.2969, allocations: 1.266 MB / 420.1 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003091/0.3, allocations: 0.929 MB / 421 MB, free: 7.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006631/0.3066, allocations: 3.633 MB / 424.6 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004154/0.3107, allocations: 1.878 MB / 426.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003367/0.3141, allocations: 1.76 MB / 428.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004297/0.3184, allocations: 2.083 MB / 430.3 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001237/0.3196, allocations: 480.3 kB / 430.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002305/0.322, allocations: 0.6833 MB / 431.5 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001666/0.3236, allocations: 1.157 MB / 432.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004326/0.3279, allocations: 2.042 MB / 434.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008742/0.3367, allocations: 6.276 MB / 441 MB, free: 7.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3367, allocations: 0 / 441 MB, free: 7.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3367, allocations: 0 / 441 MB, free: 7.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001756/0.3369, allocations: 0 / 441 MB, free: 7.301 MB / 350.1 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.01163/0.3485, allocations: 4.256 MB / 445.2 MB, free: 2.984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/0.3486, allocations: 15.98 kB / 445.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.629e-05/0.3487, allocations: 82.48 kB / 445.3 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006352/0.3493, allocations: 447.3 kB / 445.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002794/0.3521, allocations: 0.6349 MB / 446.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004399/0.3565, allocations: 2.074 MB / 448.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.3567, allocations: 250.3 kB / 448.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005163/0.3572, allocations: 308 kB / 449 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007475/0.3647, allocations: 4.039 MB / 453.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.867e-05/0.3648, allocations: 11.98 kB / 453.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002911/0.3651, allocations: 124 kB / 453.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001697/0.3652, allocations: 150.2 kB / 453.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00634/0.3716, allocations: 3.374 MB / 456.7 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02062/0.3922, allocations: 12.83 MB / 469.5 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003353/0.3955, allocations: 1.703 MB / 471.2 MB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001594/0.3971, allocations: 0.8948 MB / 472.1 MB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004279/0.4014, allocations: 2.408 MB / 474.5 MB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.893e-05/0.4015, allocations: 43.56 kB / 474.6 MB, free: 5.082 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 2.435e-06/0.4015, allocations: 0 / 474.6 MB, free: 5.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01161/0.4131, allocations: 5.816 MB / 480.4 MB, free: 15.22 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.4131, allocations: 68.72 kB / 480.5 MB, free: 15.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002845/0.416, allocations: 1.9 MB / 482.4 MB, free: 13.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.4161, allocations: 49.7 kB / 482.4 MB, free: 13.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.4173, allocations: 1.54 MB / 484 MB, free: 11.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004474/0.4177, allocations: 0.5036 MB / 484.5 MB, free: 11.08 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005223/0.4182, allocations: 331.4 kB / 484.8 MB, free: 10.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.4184, allocations: 305.1 kB / 485.1 MB, free: 10.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.4196, allocations: 0.7769 MB / 485.9 MB, free: 9.668 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001765/0.4214, allocations: 1.375 MB / 487.2 MB, free: 8.023 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003443/0.4248, allocations: 2.312 MB / 489.5 MB, free: 5.445 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.4248, allocations: 4 kB / 489.5 MB, free: 5.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004148/0.429, allocations: 2.483 MB / 492 MB, free: 2.941 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/0.429, allocations: 15.94 kB / 492 MB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.069e-05/0.429, allocations: 20 kB / 492.1 MB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003789/0.4294, allocations: 118.5 kB / 492.2 MB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001814/0.4312, allocations: 495.5 kB / 492.7 MB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/0.4324, allocations: 1.306 MB / 494 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.4338, allocations: 111.9 kB / 494.1 MB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001404/0.4339, allocations: 83.98 kB / 494.2 MB, free: 0.6797 MB / 398.1 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.001702/0.4356, allocations: 0.9851 MB / 495.1 MB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004034/0.436, allocations: 210.6 kB / 495.4 MB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003445/0.4395, allocations: 1.969 MB / 497.3 MB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.336e-05/0.4395, allocations: 12 kB / 497.3 MB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4395, allocations: 0 / 497.3 MB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.4395, allocations: 7.969 kB / 497.3 MB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008089/0.4476, allocations: 4.967 MB / 0.4905 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.4476, allocations: 4 kB / 0.4905 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/0.4489, allocations: 311.6 kB / 0.4908 GB, free: 8.094 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003181/0.4493, allocations: 102.6 kB / 0.4909 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.563e-05/0.4493, allocations: 28 kB / 0.491 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/0.4504, allocations: 1.287 MB / 0.4922 GB, free: 6.559 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.4504, allocations: 4 kB / 0.4922 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00477/0.4552, allocations: 3.087 MB / 0.4952 GB, free: 3.406 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009835/0.4562, allocations: 386.5 kB / 0.4956 GB, free: 3.027 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002402/0.4564, allocations: 28.06 kB / 0.4956 GB, free: 3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009365/0.4574, allocations: 79.91 kB / 0.4957 GB, free: 2.922 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.4575, allocations: 93.06 kB / 0.4958 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-05/0.4576, allocations: 40 kB / 0.4958 GB, free: 2.793 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002036/0.4597, allocations: 1.281 MB / 0.4971 GB, free: 1.488 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4597, allocations: 4 kB / 0.4971 GB, free: 1.484 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001678/0.4613, allocations: 0.5312 MB / 0.4976 GB, free: 0.9531 MB / 414.1 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.005117/0.4665, allocations: 3.704 MB / 0.5012 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00351/0.47, allocations: 1.971 MB / 0.5032 GB, free: 11.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.47, allocations: 0 / 0.5032 GB, free: 11.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001541/0.4715, allocations: 0.9583 MB / 0.5041 GB, free: 10.22 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/0.4739, allocations: 0.5175 MB / 0.5046 GB, free: 9.699 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03299/0.5069, allocations: 20.09 MB / 0.5242 GB, free: 4.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002249/0.5092, allocations: 2.263 MB / 0.5264 GB, free: 2.523 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001553/0.5107, allocations: 0.5092 MB / 0.5269 GB, free: 2.012 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001649/0.5124, allocations: 1.183 MB / 0.5281 GB, free: 0.832 MB / 446.1 MB Notification: Performance of SimCode: time 1.362e-06/0.5124, allocations: 0 / 0.5281 GB, free: 0.832 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2727/0.7851, allocations: 51.46 MB / 0.5783 GB, free: 147 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.85/15.64, allocations: 3.156 kB / 0.5783 GB, free: 147 MB / 478.1 MB " [Timeout remaining time 644] (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/jenkins1/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/jenkins1/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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 25.295628258027136]