Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001609/0.001609, 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.001858/0.001858, 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.431/1.431, allocations: 230.5 MB / 257.4 MB, free: 8.016 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.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 63.89 kB / 377.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2497, allocations: 53.41 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01611/0.2658, allocations: 15.38 MB / 446.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02884/0.2947, allocations: 20.86 MB / 467.4 MB, free: 2.312 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003055/0.2977, allocations: 138.5 kB / 467.6 MB, free: 2.176 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003958/0.3017, allocations: 1.265 MB / 468.8 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009881/0.3116, allocations: 2.417 MB / 471.2 MB, free: 14.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006051/0.3176, allocations: 1.453 MB / 472.7 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01264/0.3303, allocations: 6.739 MB / 479.4 MB, free: 6.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009061/0.3312, allocations: 270.2 kB / 479.7 MB, free: 5.961 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002327/0.3335, allocations: 1.178 MB / 480.9 MB, free: 4.777 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002098/0.3356, allocations: 1.157 MB / 482 MB, free: 3.613 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004163/0.336, allocations: 76 kB / 482.1 MB, free: 3.539 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004989/0.341, allocations: 1.471 MB / 483.6 MB, free: 2.066 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000598/0.3416, allocations: 337.5 kB / 483.9 MB, free: 1.734 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002185/0.3438, allocations: 1.432 MB / 485.3 MB, free: 300 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006779/0.3506, allocations: 4.013 MB / 489.3 MB, free: 12.26 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3506, allocations: 0 / 489.3 MB, free: 12.26 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3506, allocations: 0 / 489.3 MB, free: 12.26 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001482/0.3507, allocations: 0 / 489.3 MB, free: 12.26 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007201/0.3579, allocations: 3.886 MB / 493.2 MB, free: 8.316 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/0.358, allocations: 12.03 kB / 493.2 MB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002466/0.3582, allocations: 94.5 kB / 493.3 MB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008624/0.3591, allocations: 433.3 kB / 493.8 MB, free: 7.777 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005055/0.3641, allocations: 2.341 MB / 496.1 MB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.3642, allocations: 41 kB / 496.1 MB, free: 5.301 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/0.3643, allocations: 59.94 kB / 496.2 MB, free: 5.242 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.3658, allocations: 0.7304 MB / 496.9 MB, free: 4.508 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.3658, allocations: 3.938 kB / 496.9 MB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.037e-05/0.3659, allocations: 20 kB / 497 MB, free: 4.484 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.831e-05/0.3659, allocations: 19.98 kB / 497 MB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001614/0.3675, allocations: 0.8202 MB / 497.8 MB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006437/0.374, allocations: 3.05 MB / 0.4891 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.3752, allocations: 0.5242 MB / 0.4896 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009665/0.3761, allocations: 0.5692 MB / 0.4902 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0273/0.4034, allocations: 13.79 MB / 0.5036 GB, free: 1.246 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007915/0.4042, allocations: 369.6 kB / 0.504 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.056e-06/0.4042, allocations: 0 / 0.504 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002515/0.4067, allocations: 1.13 MB / 0.5051 GB, free: 15.73 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.801e-05/0.4068, allocations: 63.33 kB / 0.5052 GB, free: 15.66 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004823/0.4116, allocations: 3.09 MB / 0.5082 GB, free: 12.57 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.344e-05/0.4117, allocations: 37.7 kB / 0.5082 GB, free: 12.53 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00155/0.4132, allocations: 1.585 MB / 0.5098 GB, free: 10.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002069/0.4135, allocations: 182.5 kB / 0.5099 GB, free: 10.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003449/0.4138, allocations: 226.4 kB / 0.5101 GB, free: 10.53 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.414, allocations: 345.9 kB / 0.5105 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005874/0.4145, allocations: 237.9 kB / 0.5107 GB, free: 9.949 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008503/0.4154, allocations: 0.6018 MB / 0.5113 GB, free: 9.172 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.4169, allocations: 0.905 MB / 0.5122 GB, free: 8.094 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.4169, allocations: 4 kB / 0.5122 GB, free: 8.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002359/0.4193, allocations: 1.263 MB / 0.5134 GB, free: 6.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.4193, allocations: 8 kB / 0.5134 GB, free: 6.812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001282/0.4194, allocations: 80 kB / 0.5135 GB, free: 6.734 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.724e-05/0.4195, allocations: 20 kB / 0.5135 GB, free: 6.715 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007275/0.4202, allocations: 203.6 kB / 0.5137 GB, free: 6.516 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.08e-05/0.4202, allocations: 23.92 kB / 0.5137 GB, free: 6.492 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.4214, allocations: 111.5 kB / 0.5138 GB, free: 6.383 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.4215, allocations: 64 kB / 0.5139 GB, free: 6.32 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007925/0.4223, allocations: 456.5 kB / 0.5143 GB, free: 5.867 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000556/0.4228, allocations: 421.3 kB / 0.5147 GB, free: 5.453 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002806/0.4256, allocations: 1.199 MB / 0.5159 GB, free: 4.246 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.4256, allocations: 8 kB / 0.5159 GB, free: 4.238 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.4256, allocations: 0 / 0.5159 GB, free: 4.238 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.4256, allocations: 7.922 kB / 0.5159 GB, free: 4.23 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003977/0.4296, allocations: 2.122 MB / 0.518 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001091/0.4297, allocations: 72 kB / 0.5181 GB, free: 1.977 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004902/0.4302, allocations: 91.98 kB / 0.5181 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.071e-05/0.4302, allocations: 7.922 kB / 0.5182 GB, free: 1.879 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8e-05/0.4303, allocations: 32 kB / 0.5182 GB, free: 1.848 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-05/0.4303, allocations: 4 kB / 0.5182 GB, free: 1.844 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.4303, allocations: 0 / 0.5182 GB, free: 1.844 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002501/0.4328, allocations: 1.347 MB / 0.5195 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009656/0.4338, allocations: 451 kB / 0.5199 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004026/0.4342, allocations: 8 kB / 0.5199 GB, free: 24 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007929/0.435, allocations: 32.03 kB / 0.52 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.4352, allocations: 67.81 kB / 0.52 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.936e-05/0.4352, allocations: 39.98 kB / 0.5201 GB, free: 15.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003131/0.4384, allocations: 2.003 MB / 0.522 GB, free: 13.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4384, allocations: 0 / 0.522 GB, free: 13.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001541/0.4399, allocations: 0.6009 MB / 0.5226 GB, free: 13.29 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003968/0.4439, allocations: 2.573 MB / 0.5251 GB, free: 10.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.4456, allocations: 0.7787 MB / 0.5259 GB, free: 9.875 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4456, allocations: 0 / 0.5259 GB, free: 9.875 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000796/0.4464, allocations: 431.5 kB / 0.5263 GB, free: 9.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00292/0.4493, allocations: 0.6381 MB / 0.5269 GB, free: 8.789 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.229/0.6783, allocations: 17.04 MB / 0.5436 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007678/0.679, allocations: 1.713 MB / 0.5452 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009244/0.68, allocations: 360.5 kB / 0.5456 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008983/0.6809, allocations: 1.261 MB / 0.5468 GB, free: 99.64 MB / 446.1 MB Notification: Performance of SimCode: time 1.262e-06/0.6809, allocations: 1.25 kB / 0.5468 GB, free: 99.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.104/0.7848, allocations: 63.83 MB / 0.6092 GB, free: 39.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.48/20.26, allocations: 3.859 kB / 0.6092 GB, free: 39.44 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.48176961299032]