Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.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: translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,tolerance=1e-08,outputFormat="mat",numberOfIntervals=1998,variableFilter="time|Q1.vbc|Q1.vbe",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,tolerance=1e-08,outputFormat="mat",numberOfIntervals=1998,variableFilter="time|Q1.vbc|Q1.vbe",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 112.2 kB / 17.28 MB, free: 6.219 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.001077/0.001077, allocations: 189.3 kB / 18.2 MB, free: 5.301 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.314/1.314, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001218/0.001218, allocations: 48.41 kB / 280.1 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09208/0.09331, allocations: 46.64 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.00551/0.09886, allocations: 5.002 MB / 331.8 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009751/0.1086, allocations: 10.33 MB / 342.1 MB, free: 5.398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007317/0.1095, allocations: 8 kB / 342.1 MB, free: 5.391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001752/0.1112, allocations: 0.6328 MB / 342.8 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002554/0.1138, allocations: 0.8326 MB / 343.6 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001308/0.1151, allocations: 0.5108 MB / 344.1 MB, free: 3.406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001739/0.1169, allocations: 1.35 MB / 345.4 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002471/0.1171, allocations: 185.1 kB / 345.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.1174, allocations: 266.6 kB / 345.9 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002806/0.1177, allocations: 322 kB / 346.2 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.142e-05/0.1177, allocations: 32 kB / 346.2 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001147/0.1189, allocations: 0.6636 MB / 346.9 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.002e-05/0.119, allocations: 115.2 kB / 347 MB, free: 484 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002875/0.1193, allocations: 405.4 kB / 347.4 MB, free: 76 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00124/0.1205, allocations: 1.25 MB / 348.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1206, allocations: 4 kB / 348.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1206, allocations: 0 / 348.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.1206, allocations: 0 / 348.7 MB, free: 14.82 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.00181/0.1224, allocations: 1.327 MB / 350 MB, free: 13.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.1225, allocations: 8.031 kB / 350 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.1226, allocations: 111.6 kB / 350.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008693/0.1235, allocations: 0.7504 MB / 350.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.1235, allocations: 20.56 kB / 350.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.158e-05/0.1236, allocations: 27.98 kB / 350.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006031/0.1242, allocations: 317.3 kB / 351.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.1242, allocations: 7.984 kB / 351.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.1242, allocations: 8 kB / 351.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.1243, allocations: 12 kB / 351.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005656/0.1248, allocations: 270.2 kB / 351.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001736/0.1266, allocations: 1.369 MB / 352.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006341/0.1272, allocations: 298.5 kB / 353.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003827/0.1276, allocations: 248.6 kB / 353.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003862/0.1315, allocations: 3.611 MB / 357 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003874/0.1319, allocations: 199.2 kB / 357.2 MB, free: 5.484 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.375e-06/0.1319, allocations: 0 / 357.2 MB, free: 5.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001482/0.1334, allocations: 0.7272 MB / 357.9 MB, free: 4.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/0.1335, allocations: 59.39 kB / 358 MB, free: 4.637 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00082/0.1343, allocations: 0.8192 MB / 358.8 MB, free: 3.801 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.1343, allocations: 29.7 kB / 358.8 MB, free: 3.766 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003111/0.1346, allocations: 448.5 kB / 359.3 MB, free: 3.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.502e-05/0.1347, allocations: 94.64 kB / 359.4 MB, free: 3.227 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.1348, allocations: 69.94 kB / 359.4 MB, free: 3.152 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.991e-05/0.1349, allocations: 326 kB / 359.8 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.1352, allocations: 116.7 kB / 359.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003124/0.1355, allocations: 224 kB / 360.1 MB, free: 2.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005773/0.1361, allocations: 360.9 kB / 360.4 MB, free: 2.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1361, allocations: 7.938 kB / 360.5 MB, free: 2.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008742/0.137, allocations: 0.5131 MB / 361 MB, free: 1.516 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.137, allocations: 8 kB / 361 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.013e-05/0.1371, allocations: 32.44 kB / 361 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002353/0.1373, allocations: 57.69 kB / 361.1 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002934/0.1376, allocations: 67.89 kB / 361.1 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001983/0.1396, allocations: 2.855 MB / 364 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.1399, allocations: 35.67 kB / 364 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-05/0.14, allocations: 20 kB / 364 MB, free: 14.15 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (VIN.counter,$PRE.VIN.counter,VIN.counter2,$PRE.VIN.counter2,VIN.T0,$PRE.VIN.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000232/0.1402, allocations: 213.7 kB / 364.2 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.22e-05/0.1403, allocations: 106.7 kB / 364.4 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.1413, allocations: 0.4932 MB / 364.8 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1413, allocations: 4.094 kB / 364.9 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.1413, allocations: 0 / 364.9 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1414, allocations: 3.984 kB / 364.9 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005332/0.1419, allocations: 0.5544 MB / 365.4 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-05/0.1419, allocations: 28 kB / 365.4 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002323/0.1422, allocations: 47.95 kB / 365.5 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001272/0.1423, allocations: 45.69 kB / 365.5 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.1424, allocations: 12 kB / 365.5 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001691/0.144, allocations: 2.84 MB / 368.4 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1441, allocations: 3.938 kB / 368.4 MB, free: 9.453 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.1451, allocations: 0.6073 MB / 369 MB, free: 8.82 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001712/0.1453, allocations: 179.8 kB / 369.2 MB, free: 8.625 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.888e-05/0.1454, allocations: 8 kB / 369.2 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.1457, allocations: 20.05 kB / 369.2 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.715e-05/0.1458, allocations: 31.89 kB / 369.2 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.1458, allocations: 12 kB / 369.2 MB, free: 8.555 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005605/0.1464, allocations: 0.5506 MB / 369.8 MB, free: 7.996 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.383e-06/0.1464, allocations: 0 / 369.8 MB, free: 7.996 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005896/0.147, allocations: 243.6 kB / 370 MB, free: 7.758 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Q1.vbe,Q1.vbc) * Number of discrete variables: 4 ($whenCondition1,VIN.T0,VIN.counter,VIN.counter2) * Number of discrete states: 2 (VIN.counter,VIN.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005539/0.1475, allocations: 360.2 kB / 370.4 MB, free: 7.395 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009926/0.1485, allocations: 0.5934 MB / 371 MB, free: 6.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.1485, allocations: 4 kB / 371 MB, free: 6.766 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005425/0.1491, allocations: 442.9 kB / 371.4 MB, free: 6.301 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004505/0.1496, allocations: 92.45 kB / 371.5 MB, free: 6.207 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.1519, allocations: 1.762 MB / 373.3 MB, free: 4.414 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004356/0.1523, allocations: 0.9561 MB / 374.2 MB, free: 3.43 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002656/0.1526, allocations: 85.14 kB / 374.3 MB, free: 3.348 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.929e-05/0.1527, allocations: 43.44 kB / 374.3 MB, free: 3.305 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1527, allocations: 4 kB / 374.3 MB, free: 3.301 MB / 318.1 MB Notification: Performance of Templates: time 0.1581/0.3108, allocations: 8.246 MB / 382.6 MB, free: 53.34 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Spice3BenchmarkRtlInverter/Spice3BenchmarkRtlInverter.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches