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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001166/0.001166, allocations: 114 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 59.56 kB / 306.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09389/0.09506, allocations: 50.53 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1841/0.2792, allocations: 15.17 MB / 372.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0187/0.298, allocations: 20.61 MB / 392.9 MB, free: 15.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002466/0.3005, allocations: 31.56 kB / 392.9 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004241/0.3048, allocations: 1.105 MB / 394 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009519/0.3143, allocations: 2.027 MB / 396 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005011/0.3194, allocations: 1.252 MB / 397.3 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01043/0.3298, allocations: 6.748 MB / 404 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009471/0.3308, allocations: 475.6 kB / 404.5 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002097/0.3329, allocations: 1.121 MB / 405.6 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.3342, allocations: 1.145 MB / 406.8 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001575/0.3343, allocations: 76.62 kB / 406.8 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004769/0.3391, allocations: 1.49 MB / 408.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003297/0.3394, allocations: 337.5 kB / 408.6 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001454/0.3409, allocations: 1.436 MB / 410.1 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00477/0.3457, allocations: 3.946 MB / 414 MB, free: 2.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3457, allocations: 0 / 414 MB, free: 2.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3457, allocations: 4 kB / 414 MB, free: 2.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.842e-05/0.3458, allocations: 0 / 414 MB, free: 2.66 MB / 318.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.005059/0.3508, allocations: 3.818 MB / 417.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3509, allocations: 16.02 kB / 417.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001306/0.351, allocations: 91.7 kB / 418 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003976/0.3514, allocations: 414.9 kB / 418.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003268/0.3547, allocations: 2.498 MB / 420.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.706e-05/0.3548, allocations: 37 kB / 420.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.3549, allocations: 48 kB / 420.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.3563, allocations: 0.7265 MB / 421.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.3564, allocations: 0 / 421.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.547e-05/0.3565, allocations: 23.98 kB / 421.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.371e-05/0.3565, allocations: 23.98 kB / 421.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001639/0.3581, allocations: 0.8202 MB / 422.5 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004763/0.3629, allocations: 3.098 MB / 425.6 MB, free: 6.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.3641, allocations: 0.5751 MB / 426.2 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009503/0.365, allocations: 0.6477 MB / 426.9 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02807/0.3931, allocations: 30.78 MB / 457.6 MB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007493/0.3939, allocations: 365.6 kB / 458 MB, free: 2.168 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.885e-06/0.3939, allocations: 3.938 kB / 458 MB, free: 2.164 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002273/0.3962, allocations: 1.104 MB / 459.1 MB, free: 1.051 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.3962, allocations: 63.39 kB / 459.2 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003543/0.3998, allocations: 3.087 MB / 462.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.854e-05/0.3999, allocations: 29.7 kB / 462.3 MB, free: 13.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001227/0.4011, allocations: 1.584 MB / 463.9 MB, free: 12.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.4013, allocations: 169.7 kB / 464 MB, free: 12.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000287/0.4016, allocations: 230.1 kB / 464.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.4017, allocations: 338 kB / 464.6 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005721/0.4023, allocations: 249.8 kB / 464.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007862/0.4031, allocations: 0.5981 MB / 465.4 MB, free: 10.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.4045, allocations: 0.9012 MB / 466.3 MB, free: 9.434 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.4045, allocations: 4 kB / 466.3 MB, free: 9.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002301/0.4068, allocations: 1.245 MB / 467.6 MB, free: 8.176 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.4068, allocations: 12 kB / 467.6 MB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/0.4069, allocations: 80 kB / 467.7 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.019e-05/0.407, allocations: 16 kB / 467.7 MB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006978/0.4077, allocations: 200.4 kB / 467.9 MB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.491e-05/0.4077, allocations: 31.86 kB / 467.9 MB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009991/0.4087, allocations: 103.1 kB / 468 MB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/0.4088, allocations: 68 kB / 468.1 MB, free: 7.676 MB / 382.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.00074/0.4096, allocations: 462.4 kB / 468.5 MB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004642/0.4101, allocations: 399.1 kB / 468.9 MB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00293/0.413, allocations: 1.21 MB / 470.1 MB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.413, allocations: 4 kB / 470.1 MB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.413, allocations: 0 / 470.1 MB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.413, allocations: 0 / 470.1 MB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003405/0.4164, allocations: 2.147 MB / 472.3 MB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.87e-05/0.4166, allocations: 71.98 kB / 472.3 MB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004868/0.4171, allocations: 95.84 kB / 472.4 MB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.4171, allocations: 4 kB / 472.4 MB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.875e-05/0.4171, allocations: 28 kB / 472.5 MB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/0.4171, allocations: 3.984 kB / 472.5 MB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.4172, allocations: 7.938 kB / 472.5 MB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.4195, allocations: 1.332 MB / 473.8 MB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008307/0.4204, allocations: 488.1 kB / 474.3 MB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004503/0.4208, allocations: 12 kB / 474.3 MB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008015/0.4217, allocations: 27.95 kB / 474.3 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.4218, allocations: 67.95 kB / 474.4 MB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.301e-05/0.4219, allocations: 39.98 kB / 474.4 MB, free: 1.172 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002671/0.4246, allocations: 2.003 MB / 476.4 MB, free: 15.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4246, allocations: 0 / 476.4 MB, free: 15.17 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001414/0.426, allocations: 0.6011 MB / 477 MB, free: 14.57 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.003507/0.4295, allocations: 2.553 MB / 479.6 MB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.4313, allocations: 0.8217 MB / 480.4 MB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4313, allocations: 0 / 480.4 MB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007416/0.432, allocations: 447.1 kB / 480.9 MB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002937/0.435, allocations: 0.6585 MB / 481.5 MB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04421/0.4792, allocations: 22.85 MB / 0.4925 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001216/0.4804, allocations: 1.718 MB / 0.4942 GB, free: 15.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001363/0.4818, allocations: 357.3 kB / 0.4946 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/0.4831, allocations: 1.269 MB / 0.4958 GB, free: 13.48 MB / 430.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4831, allocations: 0 / 0.4958 GB, free: 13.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5761/1.059, allocations: 61.95 MB / 0.5563 GB, free: 133.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002293/1.059, allocations: 217.1 kB / 0.5565 GB, free: 133 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.352/5.411, allocations: 9.188 kB / 0.5565 GB, free: 133 MB / 446.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches