Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001797/0.001797, allocations: 118 kB / 20.44 MB, free: 1.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002045/0.002045, allocations: 210.2 kB / 23.74 MB, free: 4.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 230.5 MB / 257.4 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 67.89 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2519, allocations: 53.4 MB / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01367/0.2656, allocations: 10.45 MB / 441.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007273/0.2729, allocations: 3.498 MB / 445.2 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001683/0.2745, allocations: 71.5 kB / 445.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002051/0.2766, allocations: 0.8421 MB / 446.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002715/0.2793, allocations: 0.8853 MB / 446.9 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.2803, allocations: 443.3 kB / 447.4 MB, free: 6.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003495/0.2838, allocations: 2.763 MB / 450.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00191/0.2858, allocations: 1.352 MB / 451.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001907/0.2877, allocations: 1.301 MB / 452.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002551/0.2902, allocations: 1.627 MB / 454.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000581/0.2908, allocations: 332 kB / 454.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009425/0.2917, allocations: 451.8 kB / 455.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009727/0.2927, allocations: 0.9505 MB / 456.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001856/0.2946, allocations: 1.513 MB / 457.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005194/0.2998, allocations: 4.402 MB / 462.1 MB, free: 7.656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2998, allocations: 0 / 462.1 MB, free: 7.656 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2998, allocations: 4 kB / 462.1 MB, free: 7.652 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.568e-05/0.2999, allocations: 0 / 462.1 MB, free: 7.652 MB / 366.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.006548/0.3064, allocations: 3.069 MB / 465.1 MB, free: 4.535 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.3064, allocations: 8.031 kB / 465.1 MB, free: 4.527 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004684/0.3069, allocations: 321 kB / 465.4 MB, free: 4.203 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000889/0.3078, allocations: 339 kB / 465.8 MB, free: 3.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00321/0.311, allocations: 1.555 MB / 467.3 MB, free: 2.277 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.3112, allocations: 176.3 kB / 467.5 MB, free: 2.102 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003612/0.3115, allocations: 220 kB / 467.7 MB, free: 1.887 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005082/0.3166, allocations: 2.909 MB / 470.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.025e-05/0.3167, allocations: 11.98 kB / 470.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002099/0.3169, allocations: 91.98 kB / 470.7 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001327/0.317, allocations: 116.3 kB / 470.8 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004423/0.3214, allocations: 2.433 MB / 473.3 MB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01487/0.3363, allocations: 8.868 MB / 482.1 MB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002212/0.3385, allocations: 1.185 MB / 483.3 MB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001743/0.3403, allocations: 0.921 MB / 484.3 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002306/0.3405, allocations: 44.95 kB / 484.3 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/0.3405, allocations: 43.56 kB / 484.3 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.055e-06/0.3405, allocations: 0 / 484.3 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01411/0.3546, allocations: 6.09 MB / 490.4 MB, free: 10.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.55e-05/0.3547, allocations: 68.41 kB / 490.5 MB, free: 10.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002433/0.3571, allocations: 1.566 MB / 492.1 MB, free: 9.098 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001297/0.3573, allocations: 45.7 kB / 492.1 MB, free: 9.047 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000922/0.3582, allocations: 1.142 MB / 493.2 MB, free: 7.891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004196/0.3586, allocations: 452.2 kB / 493.7 MB, free: 7.445 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004328/0.359, allocations: 275.5 kB / 494 MB, free: 7.168 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.3592, allocations: 301.1 kB / 494.3 MB, free: 6.871 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.3604, allocations: 0.7105 MB / 495 MB, free: 6.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001598/0.362, allocations: 1.138 MB / 496.1 MB, free: 4.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002939/0.3649, allocations: 1.963 MB / 498.1 MB, free: 2.691 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.3649, allocations: 8 kB / 498.1 MB, free: 2.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004462/0.3694, allocations: 2.448 MB / 0.4888 GB, free: 220 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.804e-05/0.3694, allocations: 14.78 kB / 0.4888 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.3695, allocations: 16 kB / 0.4888 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001046/0.3705, allocations: 417.8 kB / 0.4892 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.3718, allocations: 359.4 kB / 0.4896 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007568/0.3794, allocations: 6.809 MB / 0.4962 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.3809, allocations: 111.8 kB / 0.4963 GB, free: 8.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.381, allocations: 67.94 kB / 0.4964 GB, free: 8.098 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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.001351/0.3823, allocations: 0.7123 MB / 0.4971 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003337/0.3827, allocations: 178.9 kB / 0.4972 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003881/0.3866, allocations: 2.123 MB / 0.4993 GB, free: 5.047 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.3866, allocations: 16 kB / 0.4993 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.3866, allocations: 7.938 kB / 0.4993 GB, free: 5.023 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.3866, allocations: 7.969 kB / 0.4993 GB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008295/0.3949, allocations: 4.652 MB / 0.5039 GB, free: 252 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/0.3949, allocations: 4 kB / 0.5039 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009695/0.3959, allocations: 223.7 kB / 0.5041 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001155/0.397, allocations: 463.5 kB / 0.5046 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.999e-05/0.3971, allocations: 35.98 kB / 0.5046 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008733/0.4058, allocations: 8.277 MB / 0.5127 GB, free: 6.789 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/0.4059, allocations: 7.938 kB / 0.5127 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005394/0.4112, allocations: 3.132 MB / 0.5157 GB, free: 3.574 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.4123, allocations: 326.8 kB / 0.516 GB, free: 3.254 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002511/0.4125, allocations: 35.98 kB / 0.5161 GB, free: 3.219 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008867/0.4134, allocations: 83.91 kB / 0.5162 GB, free: 3.137 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002496/0.4137, allocations: 108.7 kB / 0.5163 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.114e-05/0.4137, allocations: 35.98 kB / 0.5163 GB, free: 2.996 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001718/0.4155, allocations: 1.071 MB / 0.5173 GB, free: 1.93 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4155, allocations: 4 kB / 0.5173 GB, free: 1.926 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001766/0.4172, allocations: 491.9 kB / 0.5178 GB, free: 1.445 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (107): * Single equations (assignments): 103 * 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.005727/0.423, allocations: 3.784 MB / 0.5215 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003972/0.4269, allocations: 2.143 MB / 0.5236 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.4269, allocations: 0 / 0.5236 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002518/0.4294, allocations: 1.428 MB / 0.525 GB, free: 9.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/0.4318, allocations: 483.1 kB / 0.5255 GB, free: 9.449 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2337/0.6655, allocations: 17.79 MB / 0.5428 GB, free: 97.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001209/0.6668, allocations: 1.868 MB / 0.5447 GB, free: 96.47 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00109/0.6678, allocations: 391.1 kB / 0.545 GB, free: 96.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009053/0.6688, allocations: 0.876 MB / 0.5459 GB, free: 95.75 MB / 446.1 MB Notification: Performance of SimCode: time 1.503e-06/0.6688, allocations: 3.938 kB / 0.5459 GB, free: 95.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09043/0.7592, allocations: 46.79 MB / 0.5916 GB, free: 53.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.11/15.87, allocations: 2.953 kB / 0.5916 GB, free: 53.82 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.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.50063256896101]