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.001024/0.001024, allocations: 114.5 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.0009736/0.0009736, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.283/1.283, allocations: 205.1 MB / 224.1 MB, free: 12.36 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.001073/0.001073, allocations: 51.92 kB / 280.2 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07918/0.08027, allocations: 46.63 MB / 326.8 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005419/0.08573, allocations: 5.152 MB / 331.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008837/0.0946, allocations: 8.608 MB / 340.5 MB, free: 6.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005136/0.09514, allocations: 19.88 kB / 340.6 MB, free: 6.941 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009755/0.09618, allocations: 330.2 kB / 340.9 MB, free: 6.617 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00257/0.09876, allocations: 0.695 MB / 341.6 MB, free: 5.918 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001478/0.1003, allocations: 0.5018 MB / 342.1 MB, free: 5.414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002173/0.1024, allocations: 1.658 MB / 343.7 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.1027, allocations: 175 kB / 343.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000283/0.103, allocations: 274.6 kB / 344.2 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002995/0.1033, allocations: 318 kB / 344.5 MB, free: 2.984 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.908e-05/0.1034, allocations: 32 kB / 344.5 MB, free: 2.953 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.1044, allocations: 0.562 MB / 345.1 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.646e-05/0.1045, allocations: 99.33 kB / 345.2 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002982/0.1048, allocations: 401.5 kB / 345.6 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.106, allocations: 1.195 MB / 346.8 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.106, allocations: 4 kB / 346.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.106, allocations: 0 / 346.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.759e-06/0.106, allocations: 0 / 346.8 MB, free: 0.6953 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.001639/0.1077, allocations: 1.279 MB / 348 MB, free: 15.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.1077, allocations: 11.97 kB / 348.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.1078, allocations: 115.6 kB / 348.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.1089, allocations: 0.8476 MB / 349 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.1089, allocations: 20.56 kB / 349 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.904e-05/0.109, allocations: 24 kB / 349.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000492/0.1095, allocations: 311.6 kB / 349.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.1095, allocations: 0 / 349.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.1096, allocations: 8 kB / 349.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.1096, allocations: 15.98 kB / 349.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003923/0.11, allocations: 230.1 kB / 349.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.1117, allocations: 1.186 MB / 350.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003367/0.112, allocations: 190.7 kB / 351 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003117/0.1123, allocations: 237.2 kB / 351.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008242/0.1206, allocations: 8.561 MB / 359.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.1206, allocations: 38.55 kB / 359.8 MB, free: 2.035 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.315e-06/0.1207, allocations: 4 kB / 359.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001532/0.1222, allocations: 0.6582 MB / 360.5 MB, free: 1.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.1223, allocations: 77.11 kB / 360.6 MB, free: 1.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008508/0.1231, allocations: 0.7987 MB / 361.4 MB, free: 444 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.1231, allocations: 25.7 kB / 361.4 MB, free: 412 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000333/0.1235, allocations: 440.9 kB / 361.8 MB, free: 15.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.416e-05/0.1236, allocations: 86.73 kB / 361.9 MB, free: 15.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.862e-05/0.1237, allocations: 53.94 kB / 361.9 MB, free: 15.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1238, allocations: 325.9 kB / 362.3 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.1239, allocations: 64.2 kB / 362.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.1241, allocations: 142.4 kB / 362.5 MB, free: 15.26 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003212/0.1244, allocations: 228.9 kB / 362.7 MB, free: 15.01 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.1244, allocations: 0 / 362.7 MB, free: 15.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005899/0.125, allocations: 412.8 kB / 363.1 MB, free: 14.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.1251, allocations: 7.938 kB / 363.1 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.724e-05/0.1251, allocations: 16.28 kB / 363.1 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003454/0.1255, allocations: 140.8 kB / 363.3 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.1256, allocations: 31.92 kB / 363.3 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006364/0.1263, allocations: 0.7153 MB / 364 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.1265, allocations: 31.72 kB / 364 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.536e-05/0.1266, allocations: 16 kB / 364 MB, free: 13.61 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002287/0.1268, allocations: 198 kB / 364.2 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.1269, allocations: 102.8 kB / 364.3 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007799/0.1277, allocations: 407.3 kB / 364.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.1277, allocations: 0 / 364.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.1277, allocations: 0 / 364.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1277, allocations: 4 kB / 364.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005468/0.1283, allocations: 0.5112 MB / 365.3 MB, free: 12.33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.06e-05/0.1283, allocations: 16 kB / 365.3 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.1284, allocations: 23.92 kB / 365.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002578/0.1287, allocations: 132.8 kB / 365.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.1287, allocations: 8 kB / 365.4 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005527/0.1293, allocations: 0.7011 MB / 366.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1293, allocations: 0 / 366.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005525/0.1299, allocations: 463.4 kB / 366.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001952/0.1301, allocations: 163.9 kB / 366.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.354e-05/0.1302, allocations: 8 kB / 366.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.1304, allocations: 4.062 kB / 366.8 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.523e-05/0.1305, allocations: 35.83 kB / 366.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.1305, allocations: 8 kB / 366.8 MB, free: 10.72 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005764/0.1311, allocations: 0.5383 MB / 367.3 MB, free: 10.17 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1311, allocations: 0 / 367.3 MB, free: 10.17 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005595/0.1316, allocations: 199.7 kB / 367.5 MB, free: 9.977 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005184/0.1322, allocations: 295.3 kB / 367.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000569/0.1328, allocations: 291.2 kB / 368.1 MB, free: 9.383 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1328, allocations: 0 / 368.1 MB, free: 9.383 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002829/0.1331, allocations: 183.3 kB / 368.3 MB, free: 9.191 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005788/0.1336, allocations: 136.9 kB / 368.4 MB, free: 9.059 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.1356, allocations: 1.459 MB / 369.9 MB, free: 7.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004897/0.1361, allocations: 0.9412 MB / 370.8 MB, free: 6.602 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003629/0.1365, allocations: 106.7 kB / 370.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.085e-05/0.1366, allocations: 51.44 kB / 371 MB, free: 6.441 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1366, allocations: 4 kB / 371 MB, free: 6.438 MB / 318.1 MB Notification: Performance of Templates: time 0.1553/0.2919, allocations: 8.999 MB / 380 MB, free: 55.34 MB / 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