Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.001723/0.001723, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.002033/0.002033, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.406/1.406, allocations: 207.6 MB / 235.3 MB, free: 10.02 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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.001831/0.001831, allocations: 51.92 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2286, allocations: 49.16 MB / 396.4 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01058/0.2391, allocations: 10.99 MB / 407.4 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007199/0.2463, allocations: 3.692 MB / 411 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002075/0.2484, allocations: 76.69 kB / 411.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002651/0.2511, allocations: 0.8737 MB / 412 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003613/0.2547, allocations: 0.9244 MB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001499/0.2562, allocations: 474.4 kB / 413.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004453/0.2606, allocations: 2.96 MB / 416.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002516/0.2631, allocations: 1.534 MB / 417.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002446/0.2656, allocations: 1.405 MB / 419.3 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003374/0.269, allocations: 1.79 MB / 421.1 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001011/0.27, allocations: 377.4 kB / 421.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001428/0.2714, allocations: 481.5 kB / 421.9 MB, free: 8.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001397/0.2728, allocations: 1.091 MB / 423 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002768/0.2756, allocations: 1.668 MB / 424.7 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006658/0.2822, allocations: 4.906 MB / 429.6 MB, free: 1.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.2822, allocations: 4 kB / 429.6 MB, free: 1.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2822, allocations: 0 / 429.6 MB, free: 1.953 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000141/0.2824, allocations: 0 / 429.6 MB, free: 1.953 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.008045/0.2904, allocations: 3.382 MB / 433 MB, free: 14.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.2905, allocations: 19.98 kB / 433 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005888/0.2911, allocations: 363 kB / 433.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008743/0.2919, allocations: 350.8 kB / 433.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003533/0.2955, allocations: 1.635 MB / 435.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.2956, allocations: 197.1 kB / 435.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000474/0.2961, allocations: 248 kB / 435.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006123/0.3022, allocations: 3.275 MB / 439 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.861e-05/0.3023, allocations: 15.94 kB / 439 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002595/0.3026, allocations: 104 kB / 439.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001518/0.3027, allocations: 124.9 kB / 439.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005219/0.308, allocations: 2.74 MB / 442 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01791/0.3259, allocations: 10.25 MB / 452.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001961/0.3278, allocations: 1.071 MB / 453.3 MB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001308/0.3291, allocations: 0.6956 MB / 454 MB, free: 8.934 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002466/0.3294, allocations: 44.97 kB / 454.1 MB, free: 8.891 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/0.3294, allocations: 47.5 kB / 454.1 MB, free: 8.836 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 2.805e-06/0.3294, allocations: 4 kB / 454.1 MB, free: 8.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01673/0.3462, allocations: 6.777 MB / 460.9 MB, free: 2.016 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.3462, allocations: 68.41 kB / 461 MB, free: 1.938 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003423/0.3496, allocations: 1.789 MB / 462.7 MB, free: 152 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001722/0.3498, allocations: 49.69 kB / 462.8 MB, free: 96 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/0.351, allocations: 1.31 MB / 464.1 MB, free: 14.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005063/0.3515, allocations: 440.3 kB / 464.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005564/0.3521, allocations: 295.4 kB / 464.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3522, allocations: 317 kB / 465.1 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.3536, allocations: 0.773 MB / 465.9 MB, free: 12.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001772/0.3553, allocations: 1.293 MB / 467.2 MB, free: 11.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003302/0.3586, allocations: 2.219 MB / 469.4 MB, free: 8.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.3587, allocations: 4 kB / 469.4 MB, free: 8.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004718/0.3634, allocations: 2.483 MB / 471.9 MB, free: 6.473 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.3634, allocations: 12 kB / 471.9 MB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.422e-05/0.3634, allocations: 20.59 kB / 471.9 MB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006903/0.3641, allocations: 243.2 kB / 472.2 MB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/0.3657, allocations: 415.3 kB / 472.6 MB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003089/0.3688, allocations: 3.031 MB / 475.6 MB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.3704, allocations: 139.7 kB / 475.7 MB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002044/0.3706, allocations: 72 kB / 475.8 MB, free: 2.312 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001615/0.3722, allocations: 0.8174 MB / 476.6 MB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005122/0.3727, allocations: 194.9 kB / 476.8 MB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003878/0.3766, allocations: 2.035 MB / 478.9 MB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.3766, allocations: 16 kB / 478.9 MB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.3766, allocations: 0 / 478.9 MB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.72e-05/0.3766, allocations: 11.91 kB / 478.9 MB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009792/0.3864, allocations: 4.701 MB / 483.6 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/0.3864, allocations: 4 kB / 483.6 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.3876, allocations: 255.6 kB / 483.8 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005802/0.3882, allocations: 207.5 kB / 484 MB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.3883, allocations: 23.94 kB / 484.1 MB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002965/0.3913, allocations: 3.011 MB / 487.1 MB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.3913, allocations: 8.031 kB / 487.1 MB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005232/0.3965, allocations: 3.132 MB / 490.2 MB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001189/0.3977, allocations: 354.6 kB / 490.6 MB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004473/0.3981, allocations: 31.88 kB / 490.6 MB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.3993, allocations: 99.92 kB / 490.7 MB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.3995, allocations: 76.84 kB / 490.8 MB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.671e-05/0.3996, allocations: 32 kB / 490.8 MB, free: 2.898 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00234/0.4019, allocations: 1.228 MB / 492 MB, free: 1.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4019, allocations: 3.938 kB / 492 MB, free: 1.676 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001889/0.4038, allocations: 483.9 kB / 492.5 MB, free: 1.203 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.005833/0.4097, allocations: 3.768 MB / 496.3 MB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00404/0.4137, allocations: 2.112 MB / 498.4 MB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.4137, allocations: 1.875 kB / 498.4 MB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002049/0.4157, allocations: 1.126 MB / 499.5 MB, free: 10.06 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002798/0.4185, allocations: 497.4 kB / 500 MB, free: 9.574 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0347/0.4532, allocations: 18.79 MB / 0.5066 GB, free: 6.035 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002738/0.456, allocations: 2.006 MB / 0.5086 GB, free: 3.992 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001812/0.4578, allocations: 0.4921 MB / 0.5091 GB, free: 3.496 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001716/0.4595, allocations: 1.011 MB / 0.5101 GB, free: 2.484 MB / 430.1 MB Notification: Performance of SimCode: time 1.031e-06/0.4595, allocations: 3.938 kB / 0.5101 GB, free: 2.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1129/0.5724, allocations: 47.57 MB / 0.5565 GB, free: 2.781 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.93/15.51, allocations: 8.016 kB / 0.5565 GB, free: 2.773 MB / 478.1 MB " [Timeout remaining time 644] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 20.673192074988037]