Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001101/0.001101, allocations: 109.3 kB / 17.32 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 201.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001179, allocations: 68 kB / 306.6 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08558/0.08678, allocations: 50.52 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1857/0.2725, allocations: 14.58 MB / 371.7 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02917/0.3017, allocations: 20.55 MB / 392.2 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002503/0.3042, allocations: 30.66 kB / 392.2 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003863/0.3081, allocations: 1.082 MB / 393.3 MB, free: 296 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008841/0.317, allocations: 1.971 MB / 395.3 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004814/0.3218, allocations: 1.265 MB / 396.6 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00986/0.3317, allocations: 6.629 MB / 403.2 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007859/0.3325, allocations: 455.8 kB / 403.6 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001684/0.3342, allocations: 1.09 MB / 404.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001179/0.3354, allocations: 1.109 MB / 405.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001584/0.3356, allocations: 77.75 kB / 405.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00427/0.3399, allocations: 1.489 MB / 407.4 MB, free: 9.555 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003285/0.3402, allocations: 333.5 kB / 407.7 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00153/0.3418, allocations: 1.378 MB / 409.1 MB, free: 7.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005614/0.3474, allocations: 3.732 MB / 412.8 MB, free: 4.094 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.3474, allocations: 0 / 412.8 MB, free: 4.094 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3474, allocations: 0 / 412.8 MB, free: 4.094 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.652e-05/0.3475, allocations: 0 / 412.8 MB, free: 4.094 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.005368/0.3529, allocations: 3.678 MB / 416.5 MB, free: 348 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.353, allocations: 12.03 kB / 416.5 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001176/0.3531, allocations: 94.5 kB / 416.6 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004343/0.3535, allocations: 404.4 kB / 417 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003223/0.3568, allocations: 2.433 MB / 419.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.3568, allocations: 37 kB / 419.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.357, allocations: 55.91 kB / 419.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.3583, allocations: 0.7304 MB / 420.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.3583, allocations: 0 / 420.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.258e-05/0.3584, allocations: 20 kB / 420.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.3584, allocations: 19.98 kB / 420.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001504/0.36, allocations: 0.8163 MB / 421.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00504/0.365, allocations: 3.055 MB / 424.2 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.3662, allocations: 0.5827 MB / 424.7 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009924/0.3672, allocations: 0.6399 MB / 425.4 MB, free: 7.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02886/0.3961, allocations: 30.76 MB / 456.1 MB, free: 4.246 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008741/0.397, allocations: 373.4 kB / 456.5 MB, free: 3.867 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.266e-06/0.397, allocations: 4 kB / 456.5 MB, free: 3.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002809/0.3998, allocations: 1.085 MB / 457.6 MB, free: 2.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.3999, allocations: 55.41 kB / 457.7 MB, free: 2.703 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004167/0.4041, allocations: 2.935 MB / 460.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.22e-05/0.4042, allocations: 37.7 kB / 460.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001219/0.4054, allocations: 1.482 MB / 462.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001685/0.4056, allocations: 165.7 kB / 462.3 MB, free: 14.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003158/0.4059, allocations: 230.1 kB / 462.5 MB, free: 13.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.406, allocations: 337.9 kB / 462.8 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005845/0.4066, allocations: 245.9 kB / 463.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007918/0.4074, allocations: 0.602 MB / 463.7 MB, free: 12.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/0.4089, allocations: 0.9012 MB / 464.6 MB, free: 11.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.4089, allocations: 0 / 464.6 MB, free: 11.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002254/0.4112, allocations: 1.23 MB / 465.8 MB, free: 10.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.4112, allocations: 12 kB / 465.8 MB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001098/0.4113, allocations: 83.98 kB / 465.9 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.634e-05/0.4113, allocations: 16 kB / 465.9 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007243/0.4121, allocations: 199.7 kB / 466.1 MB, free: 9.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.567e-05/0.4121, allocations: 23.88 kB / 466.1 MB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.4132, allocations: 115.1 kB / 466.2 MB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.4133, allocations: 64 kB / 466.3 MB, free: 9.656 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.0006334/0.414, allocations: 437.8 kB / 466.7 MB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004716/0.4145, allocations: 379.4 kB / 467.1 MB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002817/0.4173, allocations: 1.208 MB / 468.3 MB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.4173, allocations: 4 kB / 468.3 MB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.4173, allocations: 0 / 468.3 MB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.4173, allocations: 7.984 kB / 468.3 MB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003202/0.4205, allocations: 2.085 MB / 470.4 MB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.7e-05/0.4206, allocations: 68 kB / 470.5 MB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004727/0.4211, allocations: 95.92 kB / 470.6 MB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.555e-06/0.4211, allocations: 4 kB / 470.6 MB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.165e-05/0.4212, allocations: 35.98 kB / 470.6 MB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.4212, allocations: 4 kB / 470.6 MB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.4212, allocations: 0.875 kB / 470.6 MB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002182/0.4234, allocations: 1.297 MB / 471.9 MB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007038/0.4241, allocations: 488.1 kB / 472.4 MB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003714/0.4245, allocations: 8 kB / 472.4 MB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007418/0.4253, allocations: 35.95 kB / 472.4 MB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001566/0.4254, allocations: 59.89 kB / 472.5 MB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.149e-05/0.4255, allocations: 39.98 kB / 472.5 MB, free: 3.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002382/0.4279, allocations: 1.903 MB / 474.4 MB, free: 1.391 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4279, allocations: 0 / 474.4 MB, free: 1.391 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001272/0.4292, allocations: 0.5894 MB / 475 MB, free: 0.8008 MB / 382.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.003447/0.4326, allocations: 2.527 MB / 477.5 MB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.4342, allocations: 0.8254 MB / 478.4 MB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4343, allocations: 0 / 478.4 MB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007539/0.435, allocations: 443.4 kB / 478.8 MB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00247/0.4375, allocations: 0.6267 MB / 479.4 MB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03893/0.4764, allocations: 21.71 MB / 0.4894 GB, free: 4.422 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/0.4777, allocations: 1.664 MB / 0.491 GB, free: 2.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001391/0.4791, allocations: 357.1 kB / 0.4914 GB, free: 2.375 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/0.4804, allocations: 1.214 MB / 0.4925 GB, free: 1.16 MB / 414.1 MB Notification: Performance of SimCode: time 3.506e-06/0.4804, allocations: 0 / 0.4925 GB, free: 1.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3968/0.8772, allocations: 59.84 MB / 0.551 GB, free: 142.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001826/0.8774, allocations: 210.7 kB / 0.5512 GB, free: 142.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.885/4.762, allocations: 2.906 kB / 0.5512 GB, free: 142.3 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches