Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008454/0.0008454, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008186/0.0008186, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8845/0.8845, allocations: 173.3 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.926e-05/2.091e-05, allocations: 2.281 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.008646/0.008666, allocations: 12.88 MB / 331.3 MB, free: 9.426 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01637/0.02503, allocations: 17.94 MB / 349.3 MB, free: 7.406 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001698/0.02673, allocations: 130.6 kB / 349.4 MB, free: 7.277 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002223/0.02895, allocations: 1.168 MB / 350.5 MB, free: 6.102 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008096/0.03705, allocations: 2.487 MB / 353 MB, free: 3.594 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0063/0.04335, allocations: 1.441 MB / 354.5 MB, free: 2.148 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007995/0.05134, allocations: 6.819 MB / 361.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005449/0.05189, allocations: 266.3 kB / 361.6 MB, free: 11.02 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001771/0.05366, allocations: 1.605 MB / 363.2 MB, free: 9.406 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008684/0.05453, allocations: 0.8212 MB / 364 MB, free: 8.582 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000195/0.05472, allocations: 79.98 kB / 364.1 MB, free: 8.504 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00257/0.05729, allocations: 1.198 MB / 365.3 MB, free: 7.305 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002023/0.0575, allocations: 345.4 kB / 365.6 MB, free: 6.965 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008414/0.05834, allocations: 0.7632 MB / 366.4 MB, free: 6.199 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003451/0.06179, allocations: 3.951 MB / 370.3 MB, free: 2.234 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.06179, allocations: 4 kB / 370.3 MB, free: 2.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.06179, allocations: 0 / 370.3 MB, free: 2.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001171/0.06191, allocations: 3.938 kB / 370.3 MB, free: 2.227 MB / 330.7 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.003822/0.06573, allocations: 3.836 MB / 374.1 MB, free: 14.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.06577, allocations: 12.92 kB / 374.2 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.003e-05/0.06586, allocations: 98.5 kB / 374.3 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003303/0.06619, allocations: 441.2 kB / 374.7 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00229/0.06848, allocations: 2.341 MB / 377 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.06851, allocations: 37 kB / 377.1 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.601e-05/0.06859, allocations: 55.89 kB / 377.1 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008518/0.06944, allocations: 0.7421 MB / 377.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.06946, allocations: 0 / 377.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.452e-05/0.0695, allocations: 20 kB / 377.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.06952, allocations: 19.98 kB / 377.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009586/0.07047, allocations: 0.8163 MB / 378.7 MB, free: 9.648 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003248/0.07372, allocations: 2.899 MB / 381.6 MB, free: 6.684 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006921/0.07441, allocations: 0.5125 MB / 382.1 MB, free: 6.164 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005787/0.07499, allocations: 0.5653 MB / 382.7 MB, free: 5.594 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01539/0.09039, allocations: 13.7 MB / 396.4 MB, free: 7.512 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004936/0.09088, allocations: 369.8 kB / 396.8 MB, free: 7.137 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.615e-06/0.09088, allocations: 0 / 396.8 MB, free: 7.137 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.00137/0.09225, allocations: 1.131 MB / 397.9 MB, free: 5.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.09229, allocations: 59.39 kB / 397.9 MB, free: 5.926 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002811/0.0951, allocations: 3.106 MB / 401 MB, free: 2.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.439e-05/0.09514, allocations: 37.7 kB / 401.1 MB, free: 2.777 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009466/0.09609, allocations: 1.578 MB / 402.7 MB, free: 1.191 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.0962, allocations: 174.6 kB / 402.8 MB, free: 1.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000202/0.0964, allocations: 226.4 kB / 403.1 MB, free: 0.793 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.568e-05/0.09649, allocations: 337.9 kB / 403.4 MB, free: 468 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003528/0.09684, allocations: 245.8 kB / 403.6 MB, free: 220 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004947/0.09733, allocations: 0.6017 MB / 404.2 MB, free: 15.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009138/0.09825, allocations: 0.8983 MB / 405.1 MB, free: 14.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.09826, allocations: 4 kB / 405.1 MB, free: 14.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001395/0.09965, allocations: 1.271 MB / 406.4 MB, free: 13.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.09967, allocations: 11.94 kB / 406.4 MB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.59e-05/0.09974, allocations: 84 kB / 406.5 MB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.688e-05/0.09976, allocations: 16.81 kB / 406.5 MB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004275/0.1002, allocations: 207.6 kB / 406.7 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.741e-05/0.1002, allocations: 23.92 kB / 406.7 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005979/0.1008, allocations: 111.3 kB / 406.8 MB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.415e-05/0.1009, allocations: 67.98 kB / 406.9 MB, free: 12.57 MB / 378.7 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.0005298/0.1014, allocations: 457.5 kB / 407.4 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00025/0.1017, allocations: 417.3 kB / 407.8 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001573/0.1032, allocations: 1.208 MB / 409 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.1032, allocations: 4 kB / 409 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1032, allocations: 4 kB / 409 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.1033, allocations: 3.984 kB / 409 MB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002106/0.1054, allocations: 2.069 MB / 411.1 MB, free: 8.344 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-05/0.1054, allocations: 72 kB / 411.1 MB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.1057, allocations: 95.92 kB / 411.2 MB, free: 8.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.1057, allocations: 7.938 kB / 411.2 MB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.657e-05/0.1057, allocations: 31.98 kB / 411.3 MB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.1057, allocations: 3.938 kB / 411.3 MB, free: 8.137 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1057, allocations: 4 kB / 411.3 MB, free: 8.133 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.1071, allocations: 1.337 MB / 412.6 MB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004762/0.1076, allocations: 435.1 kB / 413 MB, free: 6.344 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.1077, allocations: 15.94 kB / 413 MB, free: 6.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003693/0.1081, allocations: 32.03 kB / 413.1 MB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.1082, allocations: 59.92 kB / 413.1 MB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.174e-05/0.1083, allocations: 36 kB / 413.2 MB, free: 6.203 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001744/0.11, allocations: 2.007 MB / 415.2 MB, free: 4.203 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.11, allocations: 0 / 415.2 MB, free: 4.203 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008903/0.1109, allocations: 0.6047 MB / 415.8 MB, free: 3.598 MB / 378.7 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.002244/0.1131, allocations: 2.625 MB / 418.4 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009239/0.1141, allocations: 0.7862 MB / 419.2 MB, free: 128 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1141, allocations: 0 / 419.2 MB, free: 128 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004384/0.1145, allocations: 428.2 kB / 419.6 MB, free: 15.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.116, allocations: 0.6386 MB / 420.2 MB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01741/0.1334, allocations: 16.96 MB / 437.2 MB, free: 13.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007303/0.1342, allocations: 1.169 MB / 438.4 MB, free: 12.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007117/0.1349, allocations: 357.3 kB / 438.7 MB, free: 12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008572/0.1357, allocations: 1.262 MB / 440 MB, free: 10.74 MB / 410.7 MB Notification: Performance of SimCode: time 1.503e-06/0.1357, allocations: 0 / 440 MB, free: 10.74 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2085/0.3442, allocations: 66.48 MB / 0.4946 GB, free: 71.65 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.907/9.251, allocations: 8.156 kB / 0.4946 GB, free: 71.65 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.110372791066766]