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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008903/0.0008903, allocations: 76.36 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000873/0.000873, allocations: 160.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9113/0.9113, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 324.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.086e-05/2.242e-05, allocations: 3.125 kB / 324.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.008839/0.008861, allocations: 12.91 MB / 337.4 MB, free: 2.797 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01632/0.02518, allocations: 17.96 MB / 355.4 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002225/0.02741, allocations: 134.5 kB / 355.5 MB, free: 0.625 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002436/0.02984, allocations: 1.172 MB / 356.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007303/0.03714, allocations: 2.479 MB / 359.2 MB, free: 12.95 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003642/0.04079, allocations: 1.437 MB / 360.6 MB, free: 11.5 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007531/0.04832, allocations: 6.916 MB / 367.5 MB, free: 4.562 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005838/0.0489, allocations: 270.2 kB / 367.8 MB, free: 4.273 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001623/0.05052, allocations: 1.609 MB / 369.4 MB, free: 2.66 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007209/0.05124, allocations: 0.8134 MB / 370.2 MB, free: 1.844 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.05135, allocations: 76 kB / 370.3 MB, free: 1.77 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00258/0.05393, allocations: 1.21 MB / 371.5 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001896/0.05412, allocations: 337.4 kB / 371.8 MB, free: 232 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008662/0.05498, allocations: 0.7709 MB / 372.6 MB, free: 15.45 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003859/0.05884, allocations: 3.958 MB / 376.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.05885, allocations: 0 / 376.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.05885, allocations: 0 / 376.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.46e-05/0.05893, allocations: 0 / 376.5 MB, free: 11.48 MB / 346.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.00363/0.06256, allocations: 3.843 MB / 380.4 MB, free: 7.578 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.0626, allocations: 15.98 kB / 380.4 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.167e-05/0.06269, allocations: 102.5 kB / 380.5 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003098/0.063, allocations: 429.3 kB / 380.9 MB, free: 7.031 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002294/0.0653, allocations: 2.349 MB / 383.3 MB, free: 4.586 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/0.06533, allocations: 37 kB / 383.3 MB, free: 4.547 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.8e-05/0.06543, allocations: 63.88 kB / 383.4 MB, free: 4.484 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009402/0.06637, allocations: 0.7265 MB / 384.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.06638, allocations: 4 kB / 384.1 MB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.496e-05/0.06642, allocations: 20 kB / 384.1 MB, free: 3.727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.06644, allocations: 23.98 kB / 384.1 MB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009509/0.06739, allocations: 0.8124 MB / 385 MB, free: 2.895 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003734/0.07113, allocations: 2.895 MB / 387.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007224/0.07185, allocations: 0.5203 MB / 388.4 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005967/0.07245, allocations: 0.5689 MB / 388.9 MB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01587/0.08832, allocations: 13.73 MB / 402.7 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004903/0.08881, allocations: 366 kB / 403 MB, free: 360 kB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.855e-06/0.08881, allocations: 4 kB / 403 MB, free: 356 kB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001364/0.09018, allocations: 1.135 MB / 404.2 MB, free: 15.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.09022, allocations: 59.39 kB / 404.2 MB, free: 15.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002405/0.09262, allocations: 3.106 MB / 407.3 MB, free: 12.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.984e-05/0.09266, allocations: 37.7 kB / 407.4 MB, free: 11.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001016/0.09368, allocations: 1.582 MB / 408.9 MB, free: 10.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.09378, allocations: 178.5 kB / 409.1 MB, free: 10.22 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001921/0.09397, allocations: 226.4 kB / 409.3 MB, free: 9.996 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.507e-05/0.09406, allocations: 338 kB / 409.7 MB, free: 9.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003219/0.09438, allocations: 245.8 kB / 409.9 MB, free: 9.418 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004554/0.09483, allocations: 0.6017 MB / 410.5 MB, free: 8.641 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008098/0.09564, allocations: 0.8983 MB / 411.4 MB, free: 7.566 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.09565, allocations: 4 kB / 411.4 MB, free: 7.562 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001194/0.09684, allocations: 1.271 MB / 412.7 MB, free: 6.289 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.09686, allocations: 8 kB / 412.7 MB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.15e-05/0.09692, allocations: 80 kB / 412.8 MB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/0.09695, allocations: 20 kB / 412.8 MB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003755/0.09732, allocations: 199.6 kB / 413 MB, free: 5.988 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.763e-05/0.09734, allocations: 24.17 kB / 413 MB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005278/0.09787, allocations: 115.3 kB / 413.1 MB, free: 5.852 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.747e-05/0.09794, allocations: 63.94 kB / 413.2 MB, free: 5.789 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.000475/0.09841, allocations: 453.5 kB / 413.6 MB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.09863, allocations: 417.3 kB / 414 MB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001596/0.1002, allocations: 1.216 MB / 415.3 MB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.1002, allocations: 4 kB / 415.3 MB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1002, allocations: 4 kB / 415.3 MB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1002, allocations: 0 / 415.3 MB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00195/0.1022, allocations: 2.069 MB / 417.3 MB, free: 1.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.925e-05/0.1022, allocations: 68 kB / 417.4 MB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002467/0.1025, allocations: 95.84 kB / 417.5 MB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.1025, allocations: 8.062 kB / 417.5 MB, free: 1.387 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/0.1025, allocations: 32 kB / 417.5 MB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.1025, allocations: 0 / 417.5 MB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1025, allocations: 4 kB / 417.5 MB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.1038, allocations: 1.34 MB / 418.9 MB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004169/0.1042, allocations: 439.1 kB / 419.3 MB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.1043, allocations: 8 kB / 419.3 MB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003469/0.1047, allocations: 27.95 kB / 419.3 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.1048, allocations: 59.94 kB / 419.4 MB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.1048, allocations: 39.98 kB / 419.4 MB, free: 15.42 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001549/0.1064, allocations: 2.014 MB / 421.4 MB, free: 13.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.1064, allocations: 0 / 421.4 MB, free: 13.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008689/0.1072, allocations: 0.5969 MB / 422 MB, free: 12.82 MB / 394.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.002352/0.1096, allocations: 2.622 MB / 424.7 MB, free: 10.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009321/0.1105, allocations: 0.7796 MB / 425.4 MB, free: 9.359 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1105, allocations: 0 / 425.4 MB, free: 9.359 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004017/0.1109, allocations: 431 kB / 425.9 MB, free: 8.914 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/0.1124, allocations: 0.632 MB / 426.5 MB, free: 8.277 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01833/0.1307, allocations: 16.98 MB / 443.5 MB, free: 6.781 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008379/0.1316, allocations: 1.158 MB / 444.6 MB, free: 5.586 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007473/0.1323, allocations: 361.3 kB / 445 MB, free: 5.227 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007892/0.1331, allocations: 1.262 MB / 446.3 MB, free: 3.965 MB / 410.7 MB Notification: Performance of SimCode: time 1.753e-06/0.1331, allocations: 8 kB / 446.3 MB, free: 3.957 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2102/0.3433, allocations: 66.48 MB / 0.5007 GB, free: 62.99 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.803/9.146, allocations: 12.05 kB / 0.5007 GB, free: 62.98 MB / 410.7 MB " [Timeout remaining time 651] (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 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.377251751720905]