Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.005302/0.005302, allocations: 100.7 kB / 21.96 MB, free: 5.207 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.001434/0.001434, allocations: 217.5 kB / 25.26 MB, free: 3.137 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.353/1.353, allocations: 207.7 MB / 236.1 MB, free: 9.809 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.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",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.001708/0.001708, allocations: 52.3 kB / 348 MB, free: 9.914 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2582, allocations: 49.16 MB / 397.1 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01063/0.2689, allocations: 12.31 MB / 409.4 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02364/0.2925, allocations: 17.1 MB / 426.5 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003659/0.2962, allocations: 142 kB / 426.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003526/0.2997, allocations: 1.125 MB / 427.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008685/0.3084, allocations: 2.369 MB / 430.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004799/0.3132, allocations: 1.358 MB / 431.5 MB, free: 244 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01066/0.3238, allocations: 6.501 MB / 438 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006423/0.3245, allocations: 282.2 kB / 438.3 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001855/0.3263, allocations: 1.085 MB / 439.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001755/0.3281, allocations: 1.114 MB / 440.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002563/0.3283, allocations: 72 kB / 440.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003634/0.332, allocations: 1.12 MB / 441.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004381/0.3324, allocations: 341.4 kB / 442 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001443/0.3339, allocations: 1.055 MB / 443.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005985/0.3398, allocations: 4.072 MB / 447.1 MB, free: 1.074 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3398, allocations: 0 / 447.1 MB, free: 1.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3398, allocations: 0 / 447.1 MB, free: 1.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.322e-05/0.3399, allocations: 0 / 447.1 MB, free: 1.074 MB / 350.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.005405/0.3453, allocations: 3.91 MB / 451.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.3454, allocations: 11.98 kB / 451.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.78e-05/0.3454, allocations: 17 kB / 451.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001191/0.3455, allocations: 90.52 kB / 451.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004845/0.346, allocations: 441.2 kB / 451.6 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003386/0.3494, allocations: 2.369 MB / 454 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.3494, allocations: 41 kB / 454 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.3495, allocations: 51.95 kB / 454.1 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.3509, allocations: 0.7343 MB / 454.8 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.3509, allocations: 0 / 454.8 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.346e-05/0.351, allocations: 23.98 kB / 454.8 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/0.351, allocations: 19.98 kB / 454.8 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.3526, allocations: 0.8241 MB / 455.7 MB, free: 8.379 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00519/0.3578, allocations: 2.918 MB / 458.6 MB, free: 5.398 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.3589, allocations: 0.5177 MB / 459.1 MB, free: 4.875 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009408/0.3599, allocations: 0.574 MB / 459.7 MB, free: 4.289 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02484/0.3847, allocations: 13.75 MB / 473.4 MB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007794/0.3855, allocations: 369.6 kB / 473.8 MB, free: 5.781 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.976e-06/0.3855, allocations: 0 / 473.8 MB, free: 5.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.0023/0.3878, allocations: 1.134 MB / 474.9 MB, free: 4.645 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.3878, allocations: 55.41 kB / 475 MB, free: 4.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003843/0.3917, allocations: 3.104 MB / 478.1 MB, free: 1.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.529e-05/0.3918, allocations: 41.69 kB / 478.1 MB, free: 1.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001424/0.3932, allocations: 1.586 MB / 479.7 MB, free: 15.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.3934, allocations: 178.6 kB / 479.9 MB, free: 15.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003332/0.3937, allocations: 226.4 kB / 480.1 MB, free: 15.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3939, allocations: 345.9 kB / 480.4 MB, free: 15.08 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005935/0.3945, allocations: 241.9 kB / 480.7 MB, free: 14.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008668/0.3953, allocations: 0.5979 MB / 481.3 MB, free: 14.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001454/0.3968, allocations: 0.9049 MB / 482.2 MB, free: 13 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.3968, allocations: 4 kB / 482.2 MB, free: 12.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002228/0.399, allocations: 1.263 MB / 483.4 MB, free: 11.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.399, allocations: 12 kB / 483.5 MB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001121/0.3992, allocations: 84.16 kB / 483.5 MB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.015e-05/0.3992, allocations: 16 kB / 483.6 MB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006748/0.3999, allocations: 203.6 kB / 483.7 MB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.8e-05/0.3999, allocations: 23.92 kB / 483.8 MB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000954/0.4008, allocations: 107.3 kB / 483.9 MB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.401, allocations: 64 kB / 483.9 MB, free: 11.22 MB / 398.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.0007781/0.4017, allocations: 461.4 kB / 484.4 MB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003925/0.4021, allocations: 425.3 kB / 484.8 MB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002489/0.4046, allocations: 1.219 MB / 486 MB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.4046, allocations: 7.984 kB / 486 MB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.4046, allocations: 3.938 kB / 486 MB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4046, allocations: 0 / 486 MB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003197/0.4078, allocations: 2.076 MB / 488.1 MB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.27e-05/0.4079, allocations: 71.98 kB / 488.2 MB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004499/0.4084, allocations: 91.86 kB / 488.3 MB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.006e-05/0.4084, allocations: 8.062 kB / 488.3 MB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.923e-05/0.4084, allocations: 32 kB / 488.3 MB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.4084, allocations: 0 / 488.3 MB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.4084, allocations: 7.984 kB / 488.3 MB, free: 6.758 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002502/0.411, allocations: 1.336 MB / 489.7 MB, free: 5.398 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009253/0.4119, allocations: 443 kB / 490.1 MB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003226/0.4122, allocations: 8 kB / 490.1 MB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007323/0.4129, allocations: 31.95 kB / 490.1 MB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.4131, allocations: 67.81 kB / 490.2 MB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.525e-05/0.4132, allocations: 43.98 kB / 490.2 MB, free: 4.812 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002793/0.416, allocations: 2.023 MB / 492.3 MB, free: 2.797 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.416, allocations: 0 / 492.3 MB, free: 2.797 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001394/0.4174, allocations: 0.6008 MB / 492.9 MB, free: 2.195 MB / 398.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.003662/0.421, allocations: 2.577 MB / 495.4 MB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001608/0.4226, allocations: 0.7827 MB / 496.2 MB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4226, allocations: 0 / 496.2 MB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007587/0.4234, allocations: 423 kB / 496.6 MB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002077/0.4255, allocations: 0.5423 MB / 497.2 MB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02435/0.4498, allocations: 17.17 MB / 0.5023 GB, free: 12.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/0.4509, allocations: 1.166 MB / 0.5034 GB, free: 10.89 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001027/0.452, allocations: 365.4 kB / 0.5038 GB, free: 10.53 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001313/0.4533, allocations: 1.272 MB / 0.505 GB, free: 9.258 MB / 430.1 MB Notification: Performance of SimCode: time 1.423e-06/0.4533, allocations: 0 / 0.505 GB, free: 9.258 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2738/0.727, allocations: 66.73 MB / 0.5702 GB, free: 150.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.66/19.39, allocations: 6.531 kB / 0.5702 GB, free: 150.7 MB / 478.1 MB " [Timeout remaining time 640] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 23.18889786908403]