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.00137/0.00137, allocations: 109.4 kB / 18.4 MB, free: 4.68 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.001241/0.001241, allocations: 185.2 kB / 19.33 MB, free: 3.762 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.409/1.409, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001231/0.001231, allocations: 52.38 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08365/0.08489, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.202/0.287, allocations: 5.132 MB / 380.9 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009631/0.2967, allocations: 8.669 MB / 389.6 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007569/0.2975, allocations: 38.28 kB / 389.7 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001181/0.2987, allocations: 387 kB / 390 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003237/0.302, allocations: 0.8132 MB / 390.8 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002552/0.3046, allocations: 0.5721 MB / 391.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002892/0.3075, allocations: 1.651 MB / 393.1 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003254/0.3078, allocations: 171.7 kB / 393.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006194/0.3084, allocations: 279.1 kB / 393.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004268/0.3089, allocations: 322.4 kB / 393.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.472e-05/0.309, allocations: 30.34 kB / 393.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002129/0.3111, allocations: 0.561 MB / 394.4 MB, free: 3.324 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.816e-05/0.3112, allocations: 99.86 kB / 394.5 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003707/0.3116, allocations: 408.1 kB / 394.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001958/0.3135, allocations: 1.201 MB / 396.1 MB, free: 2.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3136, allocations: 0.7031 kB / 396.1 MB, free: 2.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3136, allocations: 0 / 396.1 MB, free: 2.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.3136, allocations: 1.688 kB / 396.1 MB, free: 2.504 MB / 318.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.002023/0.3156, allocations: 1.272 MB / 397.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.3157, allocations: 9.156 kB / 397.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.3158, allocations: 112.2 kB / 397.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.317, allocations: 0.8492 MB / 398.4 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.3171, allocations: 18 kB / 398.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.133e-05/0.3171, allocations: 23.97 kB / 398.4 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005269/0.3177, allocations: 314.2 kB / 398.7 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.3177, allocations: 0 / 398.7 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.3177, allocations: 10.03 kB / 398.7 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.3178, allocations: 12.08 kB / 398.7 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004314/0.3182, allocations: 235.6 kB / 398.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001701/0.3199, allocations: 1.186 MB / 400.1 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004151/0.3203, allocations: 203.3 kB / 400.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.3207, allocations: 224.1 kB / 400.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008977/0.3297, allocations: 8.572 MB / 409.1 MB, free: 7.965 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.3297, allocations: 31.69 kB / 409.2 MB, free: 7.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.184e-06/0.3297, allocations: 0 / 409.2 MB, free: 7.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001668/0.3314, allocations: 0.6659 MB / 409.8 MB, free: 7.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.3315, allocations: 84.55 kB / 409.9 MB, free: 7.422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.3325, allocations: 0.7971 MB / 410.7 MB, free: 6.965 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.3326, allocations: 26.89 kB / 410.7 MB, free: 6.934 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003415/0.3329, allocations: 442.8 kB / 411.2 MB, free: 6.547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.033e-05/0.333, allocations: 88.39 kB / 411.2 MB, free: 6.469 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.238e-05/0.3331, allocations: 62.38 kB / 411.3 MB, free: 6.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.927e-05/0.3332, allocations: 321.3 kB / 411.6 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.3333, allocations: 64.11 kB / 411.7 MB, free: 6.082 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.3336, allocations: 149 kB / 411.8 MB, free: 5.949 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003358/0.3339, allocations: 226.1 kB / 412 MB, free: 5.785 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3339, allocations: 0 / 412 MB, free: 5.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006514/0.3346, allocations: 405.4 kB / 412.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3346, allocations: 5.406 kB / 412.5 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.225e-05/0.3346, allocations: 14.16 kB / 412.5 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003715/0.335, allocations: 145.2 kB / 412.6 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.3352, allocations: 33.16 kB / 412.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006789/0.3359, allocations: 0.7107 MB / 413.3 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000404/0.3363, allocations: 32.73 kB / 413.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.402e-05/0.3364, allocations: 16.75 kB / 413.4 MB, free: 4.867 MB / 334.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.0002775/0.3366, allocations: 196.8 kB / 413.6 MB, free: 4.699 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.3368, allocations: 107.1 kB / 413.7 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007743/0.3376, allocations: 400 kB / 414.1 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3376, allocations: 1.719 kB / 414.1 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3376, allocations: 0 / 414.1 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.3376, allocations: 9.547 kB / 414.1 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007061/0.3383, allocations: 0.5071 MB / 414.6 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-05/0.3383, allocations: 12.06 kB / 414.6 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001325/0.3385, allocations: 27.91 kB / 414.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002714/0.3388, allocations: 132.5 kB / 414.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.3388, allocations: 9.75 kB / 414.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005955/0.3394, allocations: 0.7024 MB / 415.5 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3394, allocations: 0 / 415.5 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005819/0.34, allocations: 460.9 kB / 415.9 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002284/0.3402, allocations: 177.2 kB / 416.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.951e-05/0.3403, allocations: 8.625 kB / 416.1 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.3406, allocations: 6.609 kB / 416.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.861e-05/0.3406, allocations: 19.77 kB / 416.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.3407, allocations: 8.469 kB / 416.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007174/0.3414, allocations: 0.5406 MB / 416.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3414, allocations: 1.406 kB / 416.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008133/0.3422, allocations: 189.5 kB / 416.9 MB, free: 2.488 MB / 334.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.0005602/0.3428, allocations: 303.4 kB / 417.2 MB, free: 2.305 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006072/0.3434, allocations: 280.6 kB / 417.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3434, allocations: 1.375 kB / 417.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002983/0.3437, allocations: 179.4 kB / 417.6 MB, free: 2.035 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006581/0.3444, allocations: 136.2 kB / 417.8 MB, free: 1.957 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001989/0.3464, allocations: 1.254 MB / 419 MB, free: 1.195 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/0.3469, allocations: 0.9347 MB / 419.9 MB, free: 400 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.26e-05/0.347, allocations: 54.19 kB / 420 MB, free: 388 kB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.347, allocations: 7.938 kB / 420 MB, free: 380 kB / 334.1 MB Notification: Performance of Templates: time 0.01909/0.3661, allocations: 14.41 MB / 434.4 MB, free: 2.93 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches