Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.001394/0.001394, allocations: 114 kB / 20.43 MB, free: 1.457 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.001604/0.001604, allocations: 214.9 kB / 23.74 MB, free: 4.672 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.477/1.477, allocations: 230.5 MB / 257.4 MB, free: 8 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.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002079/0.002079, allocations: 59.91 kB / 377.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2708, allocations: 53.41 MB / 431.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01285/0.2836, allocations: 9.773 MB / 441 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006871/0.2905, allocations: 3.167 MB / 444.1 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001748/0.2922, allocations: 67.56 kB / 444.2 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002523/0.2947, allocations: 0.7215 MB / 444.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003519/0.2983, allocations: 0.8194 MB / 445.7 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001428/0.2997, allocations: 407.2 kB / 446.1 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004325/0.304, allocations: 2.568 MB / 448.7 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002633/0.3067, allocations: 1.3 MB / 450 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002325/0.309, allocations: 1.227 MB / 451.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003168/0.3121, allocations: 1.534 MB / 452.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001144/0.3133, allocations: 316 kB / 453.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001651/0.3149, allocations: 431.8 kB / 453.5 MB, free: 248 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001613/0.3166, allocations: 0.9117 MB / 454.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003027/0.3196, allocations: 1.427 MB / 455.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006217/0.3258, allocations: 4.173 MB / 460 MB, free: 9.707 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3258, allocations: 0 / 460 MB, free: 9.707 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3258, allocations: 0 / 460 MB, free: 9.707 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001614/0.326, allocations: 0 / 460 MB, free: 9.707 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.007681/0.3336, allocations: 2.912 MB / 462.9 MB, free: 6.746 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3337, allocations: 8.031 kB / 462.9 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007573/0.3344, allocations: 308.2 kB / 463.2 MB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001115/0.3356, allocations: 315.1 kB / 463.5 MB, free: 6.117 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003601/0.3392, allocations: 1.464 MB / 465 MB, free: 4.613 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.3393, allocations: 172.1 kB / 465.2 MB, free: 4.441 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005863/0.3399, allocations: 211.9 kB / 465.4 MB, free: 4.234 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006281/0.3462, allocations: 2.803 MB / 468.2 MB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.391e-05/0.3463, allocations: 7.938 kB / 468.2 MB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003305/0.3466, allocations: 84 kB / 468.3 MB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001358/0.3468, allocations: 108.2 kB / 468.4 MB, free: 1.145 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00491/0.3517, allocations: 2.339 MB / 470.7 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0169/0.3686, allocations: 8.371 MB / 479.1 MB, free: 6.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002518/0.3711, allocations: 1.174 MB / 480.3 MB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001865/0.373, allocations: 0.8978 MB / 481.2 MB, free: 4.094 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002587/0.3732, allocations: 52.95 kB / 481.2 MB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.4e-05/0.3733, allocations: 51.44 kB / 481.3 MB, free: 3.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.086e-06/0.3733, allocations: 3.938 kB / 481.3 MB, free: 3.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01481/0.3881, allocations: 5.736 MB / 487 MB, free: 14.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.147e-05/0.3882, allocations: 68.34 kB / 487.1 MB, free: 14.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002896/0.391, allocations: 1.441 MB / 488.5 MB, free: 12.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001396/0.3912, allocations: 45.7 kB / 488.6 MB, free: 12.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009156/0.3921, allocations: 1.067 MB / 489.6 MB, free: 11.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000428/0.3925, allocations: 436.3 kB / 490 MB, free: 11.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004792/0.393, allocations: 255.5 kB / 490.3 MB, free: 10.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3932, allocations: 361.9 kB / 490.6 MB, free: 10.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.3945, allocations: 0.6871 MB / 491.3 MB, free: 9.812 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/0.396, allocations: 1.07 MB / 492.4 MB, free: 8.586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002897/0.3989, allocations: 1.868 MB / 494.3 MB, free: 6.555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.3989, allocations: 0 / 494.3 MB, free: 6.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004539/0.4035, allocations: 2.339 MB / 496.6 MB, free: 4.195 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.4035, allocations: 16 kB / 496.6 MB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.4035, allocations: 11.94 kB / 496.6 MB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/0.4046, allocations: 418.6 kB / 497 MB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.4058, allocations: 331.5 kB / 497.4 MB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00789/0.4137, allocations: 6.73 MB / 0.4923 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.4151, allocations: 111.8 kB / 0.4924 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001956/0.4153, allocations: 52 kB / 0.4924 GB, free: 12.19 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001433/0.4167, allocations: 0.6927 MB / 0.4931 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004669/0.4172, allocations: 166.9 kB / 0.4933 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004225/0.4214, allocations: 2.04 MB / 0.4953 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.4214, allocations: 12 kB / 0.4953 GB, free: 9.246 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.566e-05/0.4214, allocations: 8 kB / 0.4953 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.4215, allocations: 7.969 kB / 0.4953 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009299/0.4308, allocations: 4.452 MB / 0.4996 GB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.4308, allocations: 4 kB / 0.4996 GB, free: 4.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009872/0.4318, allocations: 215.7 kB / 0.4999 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.433, allocations: 447.2 kB / 0.5003 GB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.4331, allocations: 35.97 kB / 0.5003 GB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00917/0.4423, allocations: 8.214 MB / 0.5083 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-05/0.4423, allocations: 11.88 kB / 0.5083 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005701/0.448, allocations: 3.033 MB / 0.5113 GB, free: 8.195 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.449, allocations: 306.8 kB / 0.5116 GB, free: 7.895 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004261/0.4495, allocations: 35.98 kB / 0.5116 GB, free: 7.859 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.4505, allocations: 83.84 kB / 0.5117 GB, free: 7.777 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002718/0.4508, allocations: 100.8 kB / 0.5118 GB, free: 7.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.871e-05/0.4509, allocations: 35.98 kB / 0.5118 GB, free: 7.645 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0019/0.4528, allocations: 0.9888 MB / 0.5128 GB, free: 6.656 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4528, allocations: 3.938 kB / 0.5128 GB, free: 6.652 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001914/0.4547, allocations: 459.9 kB / 0.5133 GB, free: 6.203 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.006103/0.4608, allocations: 3.674 MB / 0.5168 GB, free: 2.445 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004006/0.4648, allocations: 2.078 MB / 0.5189 GB, free: 336 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.4648, allocations: 0 / 0.5189 GB, free: 336 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002568/0.4674, allocations: 1.389 MB / 0.5202 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002348/0.4698, allocations: 423.2 kB / 0.5206 GB, free: 14.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2388/0.7086, allocations: 16.78 MB / 0.537 GB, free: 99.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001575/0.7101, allocations: 1.805 MB / 0.5388 GB, free: 99.08 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001195/0.7113, allocations: 363.8 kB / 0.5391 GB, free: 99.06 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009824/0.7123, allocations: 0.8197 MB / 0.5399 GB, free: 99 MB / 446.1 MB Notification: Performance of SimCode: time 1.393e-06/0.7123, allocations: 3.938 kB / 0.5399 GB, free: 99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09189/0.8042, allocations: 43.39 MB / 0.5823 GB, free: 63.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.6/15.41, allocations: 8 kB / 0.5823 GB, free: 63.37 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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: 19.92290334799327]