Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.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.00159/0.00159, allocations: 112.1 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.002049/0.002049, allocations: 208.6 kB / 24.48 MB, free: 4.051 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.405/1.405, allocations: 207.6 MB / 235.3 MB, free: 9.996 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_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",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.001935/0.001935, allocations: 55.92 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2458, allocations: 49.15 MB / 396.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01028/0.2561, allocations: 10.37 MB / 406.7 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00689/0.263, allocations: 3.5 MB / 410.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001652/0.2646, allocations: 63.28 kB / 410.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002101/0.2667, allocations: 0.8279 MB / 411.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002738/0.2695, allocations: 0.8901 MB / 412 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.2706, allocations: 442.7 kB / 412.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003733/0.2743, allocations: 2.764 MB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00208/0.2764, allocations: 1.323 MB / 416.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002045/0.2784, allocations: 1.283 MB / 417.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002591/0.281, allocations: 1.622 MB / 419.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005848/0.2816, allocations: 335.5 kB / 419.8 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001026/0.2826, allocations: 439.3 kB / 420.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001013/0.2836, allocations: 0.9592 MB / 421.1 MB, free: 8.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001826/0.2855, allocations: 1.504 MB / 422.7 MB, free: 7.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005333/0.2908, allocations: 4.4 MB / 427.1 MB, free: 4.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.2908, allocations: 0 / 427.1 MB, free: 4.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2908, allocations: 1.188 kB / 427.1 MB, free: 4.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.999e-05/0.2909, allocations: 0 / 427.1 MB, free: 4.383 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006763/0.2977, allocations: 3.046 MB / 430.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.2977, allocations: 15.98 kB / 430.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005085/0.2982, allocations: 324.9 kB / 430.4 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008431/0.2991, allocations: 323 kB / 430.7 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003246/0.3023, allocations: 1.469 MB / 432.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001545/0.3025, allocations: 164.4 kB / 432.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004174/0.3029, allocations: 223.9 kB / 432.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005673/0.3086, allocations: 2.917 MB / 435.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.487e-05/0.3086, allocations: 4 kB / 435.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000225/0.3089, allocations: 88 kB / 435.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001408/0.309, allocations: 120.3 kB / 435.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004841/0.3138, allocations: 2.426 MB / 438.1 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0162/0.33, allocations: 8.884 MB / 447 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00241/0.3324, allocations: 1.187 MB / 448.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001856/0.3343, allocations: 0.9093 MB / 449.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002611/0.3346, allocations: 60.88 kB / 449.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.3346, allocations: 43.56 kB / 449.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 3.075e-06/0.3346, allocations: 0 / 449.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01498/0.3496, allocations: 6.032 MB / 455.3 MB, free: 7.734 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.3496, allocations: 64.41 kB / 455.3 MB, free: 7.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002621/0.3523, allocations: 1.565 MB / 456.9 MB, free: 6.086 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001771/0.3524, allocations: 49.64 kB / 456.9 MB, free: 6.031 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009688/0.3534, allocations: 1.138 MB / 458.1 MB, free: 4.879 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004617/0.3539, allocations: 452.1 kB / 458.5 MB, free: 4.434 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000487/0.3543, allocations: 271.5 kB / 458.8 MB, free: 4.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.3545, allocations: 305.1 kB / 459.1 MB, free: 3.859 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001303/0.3558, allocations: 0.7105 MB / 459.8 MB, free: 3.148 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001774/0.3576, allocations: 1.135 MB / 460.9 MB, free: 1.828 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003153/0.3607, allocations: 1.968 MB / 462.9 MB, free: 15.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.858e-06/0.3607, allocations: 4 kB / 462.9 MB, free: 15.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004878/0.3656, allocations: 2.448 MB / 465.3 MB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.446e-05/0.3656, allocations: 15.94 kB / 465.4 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.476e-05/0.3657, allocations: 12 kB / 465.4 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.3668, allocations: 429.2 kB / 465.8 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/0.3681, allocations: 347.5 kB / 466.1 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007814/0.376, allocations: 6.806 MB / 472.9 MB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.3775, allocations: 99.94 kB / 473 MB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001603/0.3776, allocations: 71.92 kB / 473.1 MB, free: 5.094 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00137/0.379, allocations: 0.7161 MB / 473.8 MB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003662/0.3794, allocations: 182.8 kB / 474 MB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004051/0.3834, allocations: 2.111 MB / 476.1 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.3834, allocations: 12 kB / 476.1 MB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/0.3834, allocations: 7.938 kB / 476.1 MB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.3834, allocations: 7.969 kB / 476.1 MB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008684/0.3921, allocations: 4.654 MB / 480.8 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.818e-06/0.3921, allocations: 4 kB / 480.8 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.3931, allocations: 223.7 kB / 481 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001225/0.3944, allocations: 455.5 kB / 481.5 MB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.531e-05/0.3945, allocations: 31.98 kB / 481.5 MB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009115/0.4036, allocations: 8.273 MB / 489.8 MB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.4036, allocations: 7.938 kB / 489.8 MB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005789/0.4094, allocations: 3.144 MB / 492.9 MB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.4104, allocations: 330.7 kB / 493.2 MB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002679/0.4107, allocations: 28 kB / 493.3 MB, free: 208 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009588/0.4116, allocations: 91.89 kB / 493.4 MB, free: 116 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002453/0.4119, allocations: 104.7 kB / 493.5 MB, free: 12 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.903e-05/0.412, allocations: 36.05 kB / 493.5 MB, free: 15.97 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001917/0.4139, allocations: 1.078 MB / 494.6 MB, free: 14.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4139, allocations: 0 / 494.6 MB, free: 14.9 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001998/0.4159, allocations: 491.9 kB / 495 MB, free: 14.42 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,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.005998/0.4219, allocations: 3.779 MB / 498.8 MB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004017/0.4259, allocations: 2.142 MB / 0.4892 GB, free: 8.363 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/0.4259, allocations: 6 kB / 0.4892 GB, free: 8.359 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002552/0.4285, allocations: 1.422 MB / 0.4906 GB, free: 6.891 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002359/0.4308, allocations: 485.6 kB / 0.4911 GB, free: 6.414 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03194/0.4628, allocations: 17.81 MB / 0.5085 GB, free: 3.871 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002381/0.4652, allocations: 1.864 MB / 0.5103 GB, free: 1.977 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001421/0.4666, allocations: 390.8 kB / 0.5107 GB, free: 1.59 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001412/0.468, allocations: 0.8742 MB / 0.5115 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of SimCode: time 1.262e-06/0.468, allocations: 0 / 0.5115 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1112/0.5792, allocations: 46.7 MB / 0.5571 GB, free: 1.887 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.72/15.3, allocations: 0 / 0.5571 GB, free: 1.887 MB / 478.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_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_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.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.120294174877927]