Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.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.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 95.38 kB / 16.95 MB, free: 6.891 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.001213/0.001213, allocations: 185.9 kB / 17.84 MB, free: 6.137 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.474/1.474, allocations: 205.4 MB / 224 MB, free: 13.07 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.000494/0.0004943, allocations: 8 kB / 280.8 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1015, allocations: 47.58 MB / 328.3 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004212/0.1058, allocations: 4.467 MB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008458/0.1143, allocations: 7.888 MB / 340.7 MB, free: 7.676 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004814/0.1148, allocations: 15.88 kB / 340.7 MB, free: 7.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007436/0.1155, allocations: 290.4 kB / 341 MB, free: 7.375 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001637/0.1172, allocations: 0.652 MB / 341.7 MB, free: 6.719 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009542/0.1182, allocations: 434 kB / 342.1 MB, free: 6.293 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002305/0.1205, allocations: 1.56 MB / 343.6 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002565/0.1207, allocations: 135 kB / 343.8 MB, free: 4.582 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003179/0.1211, allocations: 258.7 kB / 344 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003265/0.1214, allocations: 278.3 kB / 344.3 MB, free: 4.055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.385e-05/0.1215, allocations: 16 kB / 344.3 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001066/0.1225, allocations: 0.5074 MB / 344.8 MB, free: 3.531 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.527e-05/0.1226, allocations: 83.39 kB / 344.9 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001729/0.1228, allocations: 201.2 kB / 345.1 MB, free: 3.246 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008693/0.1237, allocations: 0.8492 MB / 345.9 MB, free: 2.395 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1237, allocations: 0 / 345.9 MB, free: 2.395 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1237, allocations: 4 kB / 345.9 MB, free: 2.391 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.1237, allocations: 0 / 345.9 MB, free: 2.391 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001548/0.1253, allocations: 1.155 MB / 347.1 MB, free: 1.184 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.1253, allocations: 12.03 kB / 347.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.1255, allocations: 110.7 kB / 347.2 MB, free: 1.062 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.1267, allocations: 0.8129 MB / 348 MB, free: 200 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.1267, allocations: 16.56 kB / 348 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.19e-05/0.1268, allocations: 27.98 kB / 348.1 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005407/0.1273, allocations: 307.7 kB / 348.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.1273, allocations: 4 kB / 348.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.1274, allocations: 8 kB / 348.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.1274, allocations: 8 kB / 348.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004439/0.1278, allocations: 238.1 kB / 348.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.1295, allocations: 1.19 MB / 349.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003652/0.1299, allocations: 202.6 kB / 350 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003162/0.1302, allocations: 225.2 kB / 350.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008846/0.1391, allocations: 8.582 MB / 358.8 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.1392, allocations: 38.56 kB / 358.9 MB, free: 3.871 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.265e-06/0.1392, allocations: 0 / 358.9 MB, free: 3.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001687/0.1409, allocations: 0.666 MB / 359.5 MB, free: 3.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.035e-05/0.141, allocations: 85.11 kB / 359.6 MB, free: 3.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.142, allocations: 0.787 MB / 360.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.142, allocations: 25.7 kB / 360.4 MB, free: 2.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003736/0.1424, allocations: 448.6 kB / 360.9 MB, free: 1.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.148e-05/0.1425, allocations: 82.78 kB / 360.9 MB, free: 1.715 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.561e-05/0.1425, allocations: 8 kB / 360.9 MB, free: 1.707 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.1427, allocations: 317.9 kB / 361.3 MB, free: 1.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.1428, allocations: 68.47 kB / 361.3 MB, free: 1.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.143, allocations: 149.8 kB / 361.5 MB, free: 1.145 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.1432, allocations: 100.5 kB / 361.6 MB, free: 1.047 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1432, allocations: 0 / 361.6 MB, free: 1.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006144/0.1438, allocations: 413 kB / 362 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.1438, allocations: 10.66 kB / 362 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.982e-05/0.1439, allocations: 12 kB / 362 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003615/0.1442, allocations: 144.7 kB / 362.1 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.1444, allocations: 35.92 kB / 362.2 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006525/0.1451, allocations: 0.7084 MB / 362.9 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002244/0.1453, allocations: 19.84 kB / 362.9 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.692e-05/0.1454, allocations: 12 kB / 362.9 MB, free: 15.67 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0003362/0.1457, allocations: 197.7 kB / 363.1 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.1458, allocations: 110.8 kB / 363.2 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008202/0.1467, allocations: 419.4 kB / 363.6 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.748e-06/0.1467, allocations: 0 / 363.6 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.1467, allocations: 8 kB / 363.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-06/0.1467, allocations: 0 / 363.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005364/0.1472, allocations: 0.5112 MB / 364.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.105e-05/0.1473, allocations: 12 kB / 364.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.1474, allocations: 15.98 kB / 364.2 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002649/0.1476, allocations: 143.4 kB / 364.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.1477, allocations: 8 kB / 364.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005459/0.1482, allocations: 0.7051 MB / 365 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1482, allocations: 0 / 365 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005321/0.1488, allocations: 444.3 kB / 365.5 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/0.1489, allocations: 175.8 kB / 365.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.819e-05/0.149, allocations: 7.938 kB / 365.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.1492, allocations: 8 kB / 365.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.963e-05/0.1493, allocations: 15.98 kB / 365.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.1493, allocations: 8 kB / 365.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000589/0.1499, allocations: 0.5383 MB / 366.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1499, allocations: 0 / 366.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005594/0.1505, allocations: 195.8 kB / 366.4 MB, free: 12.03 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004248/0.1509, allocations: 275.5 kB / 366.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000584/0.1515, allocations: 295.7 kB / 367 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1515, allocations: 0 / 367 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002838/0.1518, allocations: 179.3 kB / 367.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006085/0.1524, allocations: 132.3 kB / 367.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.1544, allocations: 1.391 MB / 368.6 MB, free: 9.715 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004584/0.1548, allocations: 0.9374 MB / 369.6 MB, free: 8.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003502/0.1552, allocations: 110.7 kB / 369.7 MB, free: 8.637 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.847e-05/0.1553, allocations: 55.38 kB / 369.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1553, allocations: 0 / 369.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of Templates: time 0.01623/0.1715, allocations: 8.462 MB / 378.2 MB, free: 124 kB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches