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.001752/0.001752, allocations: 103.6 kB / 21.18 MB, free: 472 kB / 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.002197/0.002197, allocations: 214.9 kB / 24.47 MB, free: 3.793 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.389/1.389, allocations: 207.7 MB / 235.3 MB, free: 9.781 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="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: 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.001797/0.001797, allocations: 55.92 kB / 347.2 MB, free: 9.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2381, allocations: 49.15 MB / 396.4 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01303/0.2511, allocations: 13.21 MB / 409.6 MB, free: 188 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01076/0.2619, allocations: 4.857 MB / 414.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00292/0.2648, allocations: 112.1 kB / 414.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00335/0.2682, allocations: 1.056 MB / 415.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004964/0.2731, allocations: 1.245 MB / 416.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002701/0.2758, allocations: 0.8919 MB / 417.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005392/0.2812, allocations: 3.633 MB / 421.4 MB, free: 8.016 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002908/0.2841, allocations: 1.799 MB / 423.2 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002928/0.2871, allocations: 1.765 MB / 424.9 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003336/0.2904, allocations: 1.935 MB / 426.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007609/0.2912, allocations: 476 kB / 427.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001568/0.2927, allocations: 0.6716 MB / 428 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00115/0.2939, allocations: 1.149 MB / 429.1 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002224/0.2961, allocations: 1.622 MB / 430.8 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007664/0.3038, allocations: 6.287 MB / 437.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.3038, allocations: 3.984 kB / 437.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3038, allocations: 0 / 437.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001469/0.3039, allocations: 0 / 437.1 MB, free: 10.27 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.01072/0.3146, allocations: 4.248 MB / 441.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.3147, allocations: 11.98 kB / 441.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006461/0.3153, allocations: 447.3 kB / 441.8 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003263/0.3186, allocations: 0.6388 MB / 442.4 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004844/0.3234, allocations: 2.054 MB / 444.5 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002362/0.3237, allocations: 234.7 kB / 444.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007432/0.3244, allocations: 319.9 kB / 445 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008074/0.3325, allocations: 4.11 MB / 449.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.902e-05/0.3326, allocations: 4 kB / 449.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003073/0.3329, allocations: 128 kB / 449.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000174/0.3331, allocations: 150.2 kB / 449.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006636/0.3397, allocations: 3.374 MB / 452.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02218/0.3619, allocations: 11.76 MB / 464.5 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003445/0.3653, allocations: 1.677 MB / 466.2 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001676/0.367, allocations: 0.8909 MB / 467.1 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004966/0.372, allocations: 2.135 MB / 469.2 MB, free: 9.508 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/0.372, allocations: 43.56 kB / 469.3 MB, free: 9.453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.256e-06/0.372, allocations: 0 / 469.3 MB, free: 9.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01248/0.3845, allocations: 5.824 MB / 475.1 MB, free: 3.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.986e-05/0.3845, allocations: 68.72 kB / 475.1 MB, free: 3.512 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003058/0.3876, allocations: 1.924 MB / 477.1 MB, free: 1.543 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001386/0.3877, allocations: 45.7 kB / 477.1 MB, free: 1.492 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.389, allocations: 1.548 MB / 478.7 MB, free: 15.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005167/0.3895, allocations: 0.5036 MB / 479.2 MB, free: 15.42 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005514/0.3901, allocations: 331.4 kB / 479.5 MB, free: 15.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.3902, allocations: 309.1 kB / 479.8 MB, free: 14.78 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001327/0.3916, allocations: 0.773 MB / 480.6 MB, free: 14.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001871/0.3934, allocations: 1.396 MB / 482 MB, free: 12.33 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003419/0.3968, allocations: 2.316 MB / 484.3 MB, free: 9.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.364e-05/0.3969, allocations: 8 kB / 484.3 MB, free: 9.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004539/0.4014, allocations: 2.479 MB / 486.8 MB, free: 7.246 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.611e-05/0.4014, allocations: 12.16 kB / 486.8 MB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.217e-05/0.4015, allocations: 27.94 kB / 486.8 MB, free: 7.207 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003747/0.4018, allocations: 122.5 kB / 486.9 MB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001956/0.4038, allocations: 491.2 kB / 487.4 MB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001224/0.405, allocations: 1.298 MB / 488.7 MB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001805/0.4068, allocations: 111.9 kB / 488.8 MB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001765/0.407, allocations: 83.98 kB / 488.9 MB, free: 4.992 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.001773/0.4088, allocations: 0.9852 MB / 489.9 MB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004542/0.4092, allocations: 218.6 kB / 490.1 MB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003594/0.4128, allocations: 1.965 MB / 492.1 MB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.847e-05/0.4128, allocations: 16 kB / 492.1 MB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.4129, allocations: 0 / 492.1 MB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.4129, allocations: 3.984 kB / 492.1 MB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008763/0.4216, allocations: 4.647 MB / 496.7 MB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.4216, allocations: 4 kB / 496.7 MB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001415/0.4231, allocations: 323.4 kB / 497 MB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002995/0.4234, allocations: 94.78 kB / 497.1 MB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.381e-05/0.4234, allocations: 31.98 kB / 497.2 MB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/0.4245, allocations: 1.275 MB / 498.4 MB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4245, allocations: 0 / 498.4 MB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004989/0.4295, allocations: 3.099 MB / 0.4898 GB, free: 8.023 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.4307, allocations: 386.5 kB / 0.4902 GB, free: 7.645 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002587/0.4309, allocations: 31.98 kB / 0.4902 GB, free: 7.613 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009499/0.4319, allocations: 75.91 kB / 0.4903 GB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.4321, allocations: 93.08 kB / 0.4903 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.981e-05/0.4321, allocations: 39.98 kB / 0.4904 GB, free: 7.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002143/0.4343, allocations: 1.281 MB / 0.4916 GB, free: 6.105 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4343, allocations: 4 kB / 0.4916 GB, free: 6.102 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001633/0.4359, allocations: 0.5234 MB / 0.4922 GB, free: 5.578 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.005374/0.4413, allocations: 3.715 MB / 0.4958 GB, free: 1.805 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00354/0.4448, allocations: 1.972 MB / 0.4977 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4448, allocations: 0 / 0.4977 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00164/0.4465, allocations: 0.9604 MB / 0.4986 GB, free: 14.84 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002427/0.4489, allocations: 0.507 MB / 0.4991 GB, free: 14.33 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03405/0.483, allocations: 20.07 MB / 0.5187 GB, free: 9.469 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002289/0.4853, allocations: 1.71 MB / 0.5204 GB, free: 7.719 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00175/0.487, allocations: 0.517 MB / 0.5209 GB, free: 7.199 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001842/0.4888, allocations: 1.183 MB / 0.5221 GB, free: 6.02 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4888, allocations: 0 / 0.5221 GB, free: 6.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3325/0.8214, allocations: 52.72 MB / 0.5736 GB, free: 147.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.1/15.93, allocations: 2.25 kB / 0.5736 GB, free: 147.9 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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 22.61006933823228]