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.001698/0.001698, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002162/0.002162, allocations: 210.9 kB / 24.51 MB, free: 3.941 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.432/1.432, allocations: 230.5 MB / 258.2 MB, free: 7.805 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 63.89 kB / 378.5 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.3188, allocations: 53.4 MB / 431.9 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01438/0.3332, allocations: 12.89 MB / 444.8 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02655/0.3597, allocations: 17.96 MB / 462.7 MB, free: 7.641 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004968/0.3647, allocations: 142.5 kB / 462.9 MB, free: 7.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00538/0.3701, allocations: 1.154 MB / 464 MB, free: 6.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01184/0.3819, allocations: 2.397 MB / 466.4 MB, free: 3.922 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006119/0.388, allocations: 1.418 MB / 467.8 MB, free: 2.504 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0132/0.4012, allocations: 6.735 MB / 474.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008303/0.4021, allocations: 274.2 kB / 474.9 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002346/0.4044, allocations: 1.19 MB / 476 MB, free: 10.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002171/0.4066, allocations: 1.149 MB / 477.2 MB, free: 9.098 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002659/0.4068, allocations: 76 kB / 477.3 MB, free: 9.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004115/0.411, allocations: 1.237 MB / 478.5 MB, free: 7.785 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004794/0.4114, allocations: 337.5 kB / 478.8 MB, free: 7.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0015/0.4129, allocations: 1.052 MB / 479.9 MB, free: 6.395 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006482/0.4194, allocations: 4.04 MB / 483.9 MB, free: 2.336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.4194, allocations: 4 kB / 483.9 MB, free: 2.332 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4194, allocations: 0 / 483.9 MB, free: 2.332 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.874e-05/0.4195, allocations: 0 / 483.9 MB, free: 2.332 MB / 382.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.005774/0.4253, allocations: 3.89 MB / 487.8 MB, free: 14.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.4253, allocations: 12.02 kB / 487.8 MB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.121e-05/0.4254, allocations: 13 kB / 487.8 MB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000136/0.4255, allocations: 98.52 kB / 487.9 MB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005364/0.426, allocations: 433.3 kB / 488.4 MB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00351/0.4295, allocations: 2.345 MB / 490.7 MB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.061e-05/0.4296, allocations: 33 kB / 490.7 MB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.4297, allocations: 55.95 kB / 490.8 MB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.4312, allocations: 0.7382 MB / 491.5 MB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.4312, allocations: 0 / 491.5 MB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.923e-05/0.4313, allocations: 23.98 kB / 491.6 MB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.483e-05/0.4313, allocations: 16 kB / 491.6 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.4329, allocations: 0.8241 MB / 492.4 MB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005576/0.4385, allocations: 2.902 MB / 495.3 MB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.4397, allocations: 0.5242 MB / 495.8 MB, free: 6.188 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009728/0.4406, allocations: 0.5731 MB / 496.4 MB, free: 5.609 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02592/0.4666, allocations: 13.73 MB / 0.4982 GB, free: 7.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008114/0.4674, allocations: 357.7 kB / 0.4985 GB, free: 7.137 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 5.25e-06/0.4674, allocations: 4 kB / 0.4985 GB, free: 7.133 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00253/0.4699, allocations: 1.13 MB / 0.4996 GB, free: 6 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/0.47, allocations: 67.38 kB / 0.4997 GB, free: 5.922 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004082/0.4741, allocations: 3.09 MB / 0.5027 GB, free: 2.832 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.152e-05/0.4741, allocations: 29.7 kB / 0.5027 GB, free: 2.797 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001476/0.4756, allocations: 1.593 MB / 0.5043 GB, free: 1.195 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.4758, allocations: 170.6 kB / 0.5044 GB, free: 1.027 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003412/0.4761, allocations: 230.4 kB / 0.5047 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.4763, allocations: 341.9 kB / 0.505 GB, free: 468 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005801/0.4769, allocations: 249.8 kB / 0.5052 GB, free: 220 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008751/0.4777, allocations: 0.5979 MB / 0.5058 GB, free: 15.44 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/0.4793, allocations: 0.8974 MB / 0.5067 GB, free: 14.37 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.4793, allocations: 4 kB / 0.5067 GB, free: 14.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002337/0.4816, allocations: 1.266 MB / 0.5079 GB, free: 13.09 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.4817, allocations: 8 kB / 0.5079 GB, free: 13.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/0.4818, allocations: 80 kB / 0.508 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.431e-05/0.4818, allocations: 20 kB / 0.508 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007405/0.4826, allocations: 204.3 kB / 0.5082 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.842e-05/0.4826, allocations: 23.92 kB / 0.5082 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.4836, allocations: 111.3 kB / 0.5084 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.4838, allocations: 64 kB / 0.5084 GB, free: 12.59 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.0008346/0.4846, allocations: 460.4 kB / 0.5089 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004497/0.485, allocations: 421.3 kB / 0.5093 GB, free: 11.72 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002646/0.4877, allocations: 1.199 MB / 0.5104 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.4877, allocations: 11.92 kB / 0.5104 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4877, allocations: 0 / 0.5104 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.4877, allocations: 4 kB / 0.5104 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003514/0.4912, allocations: 2.072 MB / 0.5125 GB, free: 8.363 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.98e-05/0.4913, allocations: 68 kB / 0.5125 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004798/0.4918, allocations: 91.92 kB / 0.5126 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.695e-06/0.4918, allocations: 4 kB / 0.5126 GB, free: 8.203 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.39e-05/0.4919, allocations: 35.98 kB / 0.5127 GB, free: 8.168 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.4919, allocations: 0 / 0.5127 GB, free: 8.168 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4919, allocations: 0 / 0.5127 GB, free: 8.168 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002504/0.4944, allocations: 1.347 MB / 0.514 GB, free: 6.797 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008932/0.4953, allocations: 455 kB / 0.5144 GB, free: 6.352 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000303/0.4956, allocations: 12 kB / 0.5144 GB, free: 6.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006708/0.4962, allocations: 32.02 kB / 0.5144 GB, free: 6.309 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.4964, allocations: 67.81 kB / 0.5145 GB, free: 6.242 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.577e-05/0.4965, allocations: 39.98 kB / 0.5145 GB, free: 6.203 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002727/0.4992, allocations: 2.003 MB / 0.5165 GB, free: 4.207 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4992, allocations: 0 / 0.5165 GB, free: 4.207 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00158/0.5008, allocations: 0.6008 MB / 0.5171 GB, free: 3.605 MB / 430.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.00429/0.5051, allocations: 2.573 MB / 0.5196 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.5068, allocations: 0.775 MB / 0.5204 GB, free: 200 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5068, allocations: 0 / 0.5204 GB, free: 200 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007799/0.5076, allocations: 430.9 kB / 0.5208 GB, free: 15.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002695/0.5103, allocations: 0.6387 MB / 0.5214 GB, free: 15.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2362/0.7465, allocations: 17.03 MB / 0.538 GB, free: 104.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001171/0.7476, allocations: 1.161 MB / 0.5392 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001153/0.7488, allocations: 357.8 kB / 0.5395 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001168/0.75, allocations: 1.268 MB / 0.5407 GB, free: 103.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.773e-06/0.75, allocations: 0 / 0.5407 GB, free: 103.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09485/0.8448, allocations: 66.38 MB / 0.6056 GB, free: 42.28 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.22/20.07, allocations: 4.062 kB / 0.6056 GB, free: 42.27 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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 24.038523269002326]