Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0007889/0.0007889, allocations: 93.31 kB / 17.31 MB, free: 6.535 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.0008385/0.0008384, allocations: 175.5 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.122/1.122, allocations: 223.3 MB / 242.2 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002012/0.0002013, allocations: 8.438 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07151/0.07172, allocations: 50.41 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004061/0.07581, allocations: 4.887 MB / 357.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008687/0.08452, allocations: 9.09 MB / 366.5 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004265/0.08496, allocations: 19.88 kB / 366.5 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007562/0.08573, allocations: 338.2 kB / 366.8 MB, free: 5.312 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001645/0.08739, allocations: 0.695 MB / 367.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.08845, allocations: 478 kB / 368 MB, free: 4.145 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001902/0.09036, allocations: 1.642 MB / 369.6 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.0906, allocations: 155.6 kB / 369.8 MB, free: 2.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003328/0.09094, allocations: 290.4 kB / 370.1 MB, free: 2.043 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003249/0.09127, allocations: 306 kB / 370.4 MB, free: 1.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.304e-05/0.09132, allocations: 16 kB / 370.4 MB, free: 1.727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001017/0.09235, allocations: 0.6359 MB / 371 MB, free: 1.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.752e-05/0.09244, allocations: 95.31 kB / 371.1 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002923/0.09273, allocations: 419.2 kB / 371.5 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1223/0.215, allocations: 0.839 MB / 372.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.215, allocations: 1.094 kB / 372.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2151, allocations: 0 / 372.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.038e-05/0.2151, allocations: 0 / 372.3 MB, free: 13.44 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001601/0.2167, allocations: 1.145 MB / 373.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.2167, allocations: 11.8 kB / 373.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.2169, allocations: 112.1 kB / 373.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.218, allocations: 0.8513 MB / 374.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.218, allocations: 18.09 kB / 374.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.99e-05/0.2181, allocations: 29.86 kB / 374.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00047/0.2186, allocations: 314.8 kB / 374.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.2186, allocations: 0 / 374.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.697e-05/0.2186, allocations: 10.45 kB / 374.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.2186, allocations: 7 kB / 374.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00037/0.219, allocations: 236.7 kB / 375.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001511/0.2205, allocations: 1.192 MB / 376.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.2208, allocations: 198.2 kB / 376.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002625/0.2211, allocations: 228.1 kB / 376.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005909/0.227, allocations: 8.582 MB / 385.3 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.457e-05/0.227, allocations: 34.38 kB / 385.3 MB, free: 4.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.2271, allocations: 0 / 385.3 MB, free: 4.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001401/0.2285, allocations: 0.6786 MB / 386 MB, free: 4.215 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.39e-05/0.2285, allocations: 79.27 kB / 386 MB, free: 4.121 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008243/0.2293, allocations: 0.8023 MB / 386.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.2294, allocations: 31.23 kB / 386.9 MB, free: 3.938 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002403/0.2296, allocations: 439.5 kB / 387.3 MB, free: 3.812 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.313e-05/0.2296, allocations: 76.36 kB / 387.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.557e-05/0.2297, allocations: 25.52 kB / 387.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.627e-05/0.2297, allocations: 318.6 kB / 387.7 MB, free: 3.445 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.2299, allocations: 66.7 kB / 387.8 MB, free: 3.445 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.23, allocations: 157.4 kB / 387.9 MB, free: 3.352 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002764/0.2303, allocations: 229.3 kB / 388.2 MB, free: 3.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2303, allocations: 7.938 kB / 388.2 MB, free: 3.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005419/0.2309, allocations: 416.9 kB / 388.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.2309, allocations: 8.25 kB / 388.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.397e-05/0.2309, allocations: 15.92 kB / 388.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003029/0.2312, allocations: 142.7 kB / 388.7 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.2314, allocations: 36.8 kB / 388.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004409/0.2318, allocations: 0.7097 MB / 389.5 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.2321, allocations: 35.11 kB / 389.5 MB, free: 2.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.2321, allocations: 16.56 kB / 389.5 MB, free: 2.605 MB / 302.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.0001773/0.2323, allocations: 195 kB / 389.7 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-05/0.2324, allocations: 102.8 kB / 389.8 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006987/0.2331, allocations: 413.4 kB / 390.2 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.2331, allocations: 6.031 kB / 390.2 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2331, allocations: 0 / 390.2 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.2331, allocations: 2 kB / 390.2 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004771/0.2336, allocations: 0.506 MB / 390.7 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-05/0.2336, allocations: 22.78 kB / 390.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.2337, allocations: 19.17 kB / 390.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002313/0.234, allocations: 128.9 kB / 390.9 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.234, allocations: 9.188 kB / 390.9 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003908/0.2344, allocations: 0.7096 MB / 391.6 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2344, allocations: 1.062 kB / 391.6 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004578/0.2349, allocations: 454.2 kB / 392.1 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.235, allocations: 172.6 kB / 392.2 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.308e-05/0.2351, allocations: 5.156 kB / 392.2 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.2353, allocations: 9.609 kB / 392.3 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.395e-05/0.2354, allocations: 21.11 kB / 392.3 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.2354, allocations: 9.109 kB / 392.3 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005567/0.2359, allocations: 0.5418 MB / 392.8 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2359, allocations: 2.062 kB / 392.8 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004943/0.2364, allocations: 196.8 kB / 393 MB, free: 0.6953 MB / 302.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.0004387/0.2369, allocations: 299.6 kB / 393.3 MB, free: 0.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004771/0.2374, allocations: 280.9 kB / 393.6 MB, free: 472 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2374, allocations: 0 / 393.6 MB, free: 472 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002412/0.2376, allocations: 182.1 kB / 393.8 MB, free: 372 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007072/0.2384, allocations: 158.6 kB / 393.9 MB, free: 308 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/0.2401, allocations: 1.534 MB / 395.5 MB, free: 15.37 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/0.2405, allocations: 0.9382 MB / 396.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.688e-05/0.2406, allocations: 54.28 kB / 396.4 MB, free: 14.65 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2406, allocations: 3.938 kB / 396.5 MB, free: 14.65 MB / 318.1 MB Notification: Performance of Templates: time 0.01621/0.2568, allocations: 14.25 MB / 410.7 MB, free: 4.906 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches