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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001595/0.001596, allocations: 114.4 kB / 17.73 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001818/0.001818, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 51.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08036/0.08174, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1752/0.257, allocations: 14.6 MB / 389.2 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02295/0.28, allocations: 19.8 MB / 409 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002906/0.2829, allocations: 95.09 kB / 409.1 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003599/0.2866, allocations: 1.23 MB / 410.4 MB, free: 5.426 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008512/0.2951, allocations: 2.313 MB / 412.7 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004943/0.3001, allocations: 1.377 MB / 414.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01068/0.3108, allocations: 6.469 MB / 420.5 MB, free: 152 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008101/0.3116, allocations: 472.7 kB / 421 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001609/0.3132, allocations: 1.01 MB / 422 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001266/0.3145, allocations: 1.12 MB / 423.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001886/0.3147, allocations: 74.28 kB / 423.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004072/0.3188, allocations: 1.164 MB / 424.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003539/0.3192, allocations: 341.5 kB / 424.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001584/0.3208, allocations: 1.436 MB / 426.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005894/0.3267, allocations: 4.004 MB / 430.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3267, allocations: 3.938 kB / 430.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3267, allocations: 0 / 430.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.95e-05/0.3268, allocations: 0 / 430.1 MB, free: 8.297 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.005503/0.3323, allocations: 3.845 MB / 434 MB, free: 4.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3323, allocations: 12.03 kB / 434 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001297/0.3325, allocations: 102.5 kB / 434.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004371/0.3329, allocations: 414.9 kB / 434.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00343/0.3364, allocations: 2.483 MB / 437 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.822e-05/0.3364, allocations: 40.98 kB / 437 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.3366, allocations: 63.84 kB / 437.1 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.3379, allocations: 0.7265 MB / 437.8 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.338, allocations: 0 / 437.8 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.109e-05/0.338, allocations: 20 kB / 437.8 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.094e-05/0.3381, allocations: 19.98 kB / 437.8 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.3396, allocations: 0.828 MB / 438.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005397/0.345, allocations: 3.11 MB / 441.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.3463, allocations: 0.5752 MB / 442.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.3473, allocations: 0.6447 MB / 443 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0314/0.3787, allocations: 30.19 MB / 473.2 MB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007709/0.3795, allocations: 365.5 kB / 473.5 MB, free: 8.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 3.046e-06/0.3795, allocations: 4 kB / 473.5 MB, free: 8.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002483/0.382, allocations: 1.104 MB / 474.6 MB, free: 7.383 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/0.3821, allocations: 67.33 kB / 474.7 MB, free: 7.305 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00445/0.3865, allocations: 3.104 MB / 477.8 MB, free: 4.203 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.311e-05/0.3866, allocations: 33.7 kB / 477.9 MB, free: 4.164 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001303/0.3879, allocations: 1.584 MB / 479.4 MB, free: 2.566 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.3881, allocations: 161.7 kB / 479.6 MB, free: 2.406 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003137/0.3884, allocations: 234.1 kB / 479.8 MB, free: 2.172 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.3886, allocations: 338 kB / 480.2 MB, free: 1.836 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000615/0.3892, allocations: 242.3 kB / 480.4 MB, free: 1.598 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008315/0.39, allocations: 0.5942 MB / 481 MB, free: 0.8281 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001491/0.3915, allocations: 0.9013 MB / 481.9 MB, free: 15.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.938e-06/0.3916, allocations: 7.938 kB / 481.9 MB, free: 15.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002233/0.3938, allocations: 1.251 MB / 483.1 MB, free: 14.49 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.3938, allocations: 12 kB / 483.2 MB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001181/0.394, allocations: 80 kB / 483.2 MB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.04e-05/0.394, allocations: 20.78 kB / 483.3 MB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007227/0.3947, allocations: 199.6 kB / 483.4 MB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.57e-05/0.3948, allocations: 27.92 kB / 483.5 MB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.3958, allocations: 114.9 kB / 483.6 MB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.3959, allocations: 64 kB / 483.7 MB, free: 13.98 MB / 414.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.0008325/0.3967, allocations: 465.3 kB / 484.1 MB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004335/0.3972, allocations: 403.1 kB / 484.5 MB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002665/0.3999, allocations: 1.219 MB / 485.7 MB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.3999, allocations: 4 kB / 485.7 MB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3999, allocations: 0 / 485.7 MB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3999, allocations: 0 / 485.7 MB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003586/0.4035, allocations: 2.163 MB / 487.9 MB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001003/0.4036, allocations: 68 kB / 488 MB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004962/0.4041, allocations: 95.84 kB / 488 MB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-05/0.4042, allocations: 8.062 kB / 488.1 MB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.073e-05/0.4042, allocations: 28 kB / 488.1 MB, free: 9.461 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.384e-06/0.4042, allocations: 4.875 kB / 488.1 MB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4042, allocations: 0 / 488.1 MB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002406/0.4067, allocations: 1.325 MB / 489.4 MB, free: 8.102 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009337/0.4076, allocations: 492 kB / 489.9 MB, free: 7.598 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004567/0.4081, allocations: 19.92 kB / 489.9 MB, free: 7.578 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007621/0.4088, allocations: 28.03 kB / 489.9 MB, free: 7.551 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/0.409, allocations: 71.81 kB / 490 MB, free: 7.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.716e-05/0.4091, allocations: 38 kB / 490 MB, free: 7.445 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002871/0.412, allocations: 2.019 MB / 492.1 MB, free: 5.434 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.412, allocations: 0 / 492.1 MB, free: 5.434 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00146/0.4134, allocations: 0.6012 MB / 492.7 MB, free: 4.832 MB / 414.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.003648/0.4171, allocations: 2.556 MB / 495.2 MB, free: 2.242 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.4188, allocations: 0.8218 MB / 496 MB, free: 1.395 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4188, allocations: 0 / 496 MB, free: 1.395 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007565/0.4196, allocations: 447.2 kB / 496.5 MB, free: 0.9336 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002094/0.4217, allocations: 0.5413 MB / 497 MB, free: 404 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0265/0.4482, allocations: 17.05 MB / 0.502 GB, free: 14.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001333/0.4496, allocations: 1.718 MB / 0.5037 GB, free: 13.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001114/0.4507, allocations: 357.4 kB / 0.504 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001264/0.452, allocations: 1.274 MB / 0.5053 GB, free: 11.46 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/0.452, allocations: 3.938 kB / 0.5053 GB, free: 11.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2889/0.7409, allocations: 63.25 MB / 0.5671 GB, free: 148.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.66/16.4, allocations: 6.219 kB / 0.5671 GB, free: 148.3 MB / 478.1 MB (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.002 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) 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) Reference file matches