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.001731/0.001731, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.002346/0.002346, allocations: 214.8 kB / 24.47 MB, free: 3.777 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.426/1.426, allocations: 207.7 MB / 235.3 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",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.001888/0.001888, allocations: 47.92 kB / 347.2 MB, free: 9.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2478, allocations: 49.16 MB / 396.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01076/0.2585, allocations: 12.31 MB / 408.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02456/0.2831, allocations: 17.11 MB / 425.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003317/0.2864, allocations: 138 kB / 425.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00405/0.2905, allocations: 1.132 MB / 427 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009176/0.2996, allocations: 2.365 MB / 429.4 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004753/0.3044, allocations: 1.362 MB / 430.8 MB, free: 52 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01089/0.3153, allocations: 6.5 MB / 437.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000783/0.3161, allocations: 270.3 kB / 437.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.3179, allocations: 1.085 MB / 438.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001372/0.3193, allocations: 1.067 MB / 439.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002282/0.3195, allocations: 76 kB / 439.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003484/0.323, allocations: 1.085 MB / 440.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003501/0.3233, allocations: 345.5 kB / 441.2 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001216/0.3245, allocations: 1.055 MB / 442.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005822/0.3304, allocations: 4.06 MB / 446.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3304, allocations: 4 kB / 446.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3304, allocations: 0 / 446.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.395e-05/0.3304, allocations: 0 / 446.3 MB, free: 1.008 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.005642/0.3361, allocations: 3.906 MB / 450.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.3361, allocations: 15.98 kB / 450.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/0.3362, allocations: 98.5 kB / 450.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005175/0.3368, allocations: 437.2 kB / 450.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003772/0.3405, allocations: 2.369 MB / 453.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.637e-05/0.3406, allocations: 33 kB / 453.1 MB, free: 9.992 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.3407, allocations: 55.95 kB / 453.2 MB, free: 9.938 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.3422, allocations: 0.7382 MB / 453.9 MB, free: 9.191 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.3422, allocations: 0 / 453.9 MB, free: 9.191 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.785e-05/0.3422, allocations: 23.94 kB / 453.9 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.535e-05/0.3423, allocations: 23.92 kB / 454 MB, free: 9.145 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001665/0.3439, allocations: 0.8241 MB / 454.8 MB, free: 8.316 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005472/0.3494, allocations: 2.91 MB / 457.7 MB, free: 5.344 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.3506, allocations: 0.5255 MB / 458.2 MB, free: 4.812 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009848/0.3516, allocations: 0.5623 MB / 458.8 MB, free: 4.242 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02526/0.3769, allocations: 13.75 MB / 472.5 MB, free: 6.113 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008131/0.3777, allocations: 373.6 kB / 472.9 MB, free: 5.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.354e-06/0.3777, allocations: 0 / 472.9 MB, free: 5.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002352/0.38, allocations: 1.122 MB / 474 MB, free: 4.605 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.306e-05/0.3801, allocations: 67.39 kB / 474.1 MB, free: 4.527 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003994/0.3841, allocations: 3.123 MB / 477.2 MB, free: 1.406 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.106e-05/0.3842, allocations: 29.7 kB / 477.2 MB, free: 1.371 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001597/0.3858, allocations: 1.59 MB / 478.8 MB, free: 15.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001852/0.3859, allocations: 182.5 kB / 479 MB, free: 15.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003136/0.3863, allocations: 234.3 kB / 479.2 MB, free: 15.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3864, allocations: 338 kB / 479.6 MB, free: 15.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006011/0.387, allocations: 245.8 kB / 479.8 MB, free: 14.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008705/0.3879, allocations: 0.594 MB / 480.4 MB, free: 14.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001544/0.3894, allocations: 0.9013 MB / 481.3 MB, free: 12.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/0.3894, allocations: 7.938 kB / 481.3 MB, free: 12.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002286/0.3917, allocations: 1.262 MB / 482.6 MB, free: 11.65 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.417e-05/0.3917, allocations: 12 kB / 482.6 MB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001158/0.3919, allocations: 80 kB / 482.7 MB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.21e-05/0.3919, allocations: 16.81 kB / 482.7 MB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007386/0.3926, allocations: 207.6 kB / 482.9 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.787e-05/0.3927, allocations: 27.92 kB / 482.9 MB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009905/0.3936, allocations: 107.3 kB / 483 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.3937, allocations: 68 kB / 483.1 MB, free: 11.14 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.0007856/0.3945, allocations: 461.4 kB / 483.5 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004269/0.395, allocations: 421.3 kB / 483.9 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002674/0.3976, allocations: 1.219 MB / 485.2 MB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.695e-06/0.3976, allocations: 8 kB / 485.2 MB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.3976, allocations: 4 kB / 485.2 MB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.3977, allocations: 0 / 485.2 MB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00365/0.4013, allocations: 2.072 MB / 487.2 MB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001022/0.4014, allocations: 71.94 kB / 487.3 MB, free: 6.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004878/0.4019, allocations: 83.92 kB / 487.4 MB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.257e-06/0.4019, allocations: 4 kB / 487.4 MB, free: 6.738 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.304e-05/0.402, allocations: 35.98 kB / 487.4 MB, free: 6.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.454e-06/0.402, allocations: 7.938 kB / 487.4 MB, free: 6.695 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.402, allocations: 8.062 kB / 487.5 MB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002605/0.4046, allocations: 1.348 MB / 488.8 MB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009776/0.4056, allocations: 431.1 kB / 489.2 MB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002961/0.4059, allocations: 15.98 kB / 489.2 MB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007072/0.4066, allocations: 27.97 kB / 489.3 MB, free: 4.848 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.4067, allocations: 67.8 kB / 489.3 MB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.448e-05/0.4068, allocations: 36 kB / 489.4 MB, free: 4.746 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002918/0.4097, allocations: 2.023 MB / 491.4 MB, free: 2.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4097, allocations: 0 / 491.4 MB, free: 2.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001405/0.4111, allocations: 0.6086 MB / 492 MB, free: 2.121 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.00379/0.4149, allocations: 2.585 MB / 494.6 MB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.4166, allocations: 0.767 MB / 495.4 MB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4166, allocations: 0 / 495.4 MB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007833/0.4174, allocations: 431.2 kB / 495.8 MB, free: 14.26 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/0.4196, allocations: 0.5422 MB / 496.3 MB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0258/0.4454, allocations: 17.15 MB / 0.5014 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001171/0.4466, allocations: 1.17 MB / 0.5026 GB, free: 10.84 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001101/0.4477, allocations: 357.4 kB / 0.5029 GB, free: 10.49 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001377/0.449, allocations: 1.269 MB / 0.5042 GB, free: 9.219 MB / 430.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4491, allocations: 0 / 0.5042 GB, free: 9.219 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2994/0.7485, allocations: 66.88 MB / 0.5695 GB, free: 152.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16/16.75, allocations: 1.969 kB / 0.5695 GB, free: 152.5 MB / 478.1 MB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 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.csv","/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] "Error: Could not read variable mp1.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable v.p.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable v.p.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.28803245909512]