Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001195/0.001195, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001375/0.001375, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 63.48 kB / 307 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08171/0.08294, allocations: 50.54 MB / 357.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005572/0.08854, allocations: 5.306 MB / 362.9 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1587/0.2473, allocations: 9.097 MB / 372 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004856/0.2478, allocations: 19.34 kB / 372 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008911/0.2487, allocations: 390.4 kB / 372.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002031/0.2508, allocations: 0.8352 MB / 373.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001475/0.2522, allocations: 0.5978 MB / 373.8 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002276/0.2545, allocations: 1.704 MB / 375.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000256/0.2548, allocations: 166.4 kB / 375.7 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00036/0.2552, allocations: 310.7 kB / 376 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003148/0.2555, allocations: 326 kB / 376.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.032e-05/0.2556, allocations: 30.25 kB / 376.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001272/0.2568, allocations: 0.6541 MB / 377 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.215e-05/0.2569, allocations: 102.2 kB / 377.1 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002913/0.2572, allocations: 409.6 kB / 377.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001297/0.2585, allocations: 1.199 MB / 378.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.2586, allocations: 5.812 kB / 378.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2586, allocations: 0 / 378.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.2586, allocations: 0 / 378.7 MB, free: 8.203 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.001592/0.2602, allocations: 1.274 MB / 380 MB, free: 7.379 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.2602, allocations: 10.16 kB / 380 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.926e-05/0.2603, allocations: 65.52 kB / 380 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002597/0.2606, allocations: 126.7 kB / 380.2 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.2616, allocations: 0.8487 MB / 381 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.2616, allocations: 22.06 kB / 381 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.75e-05/0.2617, allocations: 29.27 kB / 381.1 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004616/0.2622, allocations: 305 kB / 381.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.2622, allocations: 1.641 kB / 381.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.727e-05/0.2622, allocations: 10.66 kB / 381.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.2622, allocations: 7.281 kB / 381.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003955/0.2626, allocations: 238.4 kB / 381.6 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.2642, allocations: 1.193 MB / 382.8 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003321/0.2645, allocations: 199.9 kB / 383 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000288/0.2648, allocations: 225.7 kB / 383.2 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007622/0.2725, allocations: 8.878 MB / 392.1 MB, free: 13.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.2725, allocations: 31.84 kB / 392.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.074e-06/0.2725, allocations: 0 / 392.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001589/0.2741, allocations: 0.6566 MB / 392.8 MB, free: 13.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.2742, allocations: 83.62 kB / 392.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00089/0.2751, allocations: 0.8015 MB / 393.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.2751, allocations: 34.58 kB / 393.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003389/0.2755, allocations: 444.2 kB / 394.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.153e-05/0.2755, allocations: 76.97 kB / 394.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.989e-05/0.2756, allocations: 58.59 kB / 394.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.2757, allocations: 316.6 kB / 394.6 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001434/0.2759, allocations: 64.62 kB / 394.6 MB, free: 11.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.2761, allocations: 154.3 kB / 394.8 MB, free: 11.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003608/0.2765, allocations: 239.3 kB / 395 MB, free: 11.63 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.2765, allocations: 0 / 395 MB, free: 11.63 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006326/0.2771, allocations: 403.3 kB / 395.4 MB, free: 11.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.2771, allocations: 5.469 kB / 395.4 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.906e-05/0.2772, allocations: 14.86 kB / 395.4 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003529/0.2775, allocations: 143.2 kB / 395.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.2777, allocations: 36.41 kB / 395.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006432/0.2784, allocations: 0.7112 MB / 396.3 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.2787, allocations: 25.16 kB / 396.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.2787, allocations: 15.72 kB / 396.4 MB, free: 10.79 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.0002441/0.279, allocations: 209.4 kB / 396.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.2791, allocations: 102.6 kB / 396.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008407/0.2799, allocations: 406 kB / 397.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.024e-06/0.28, allocations: 10.69 kB / 397.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.28, allocations: 1.469 kB / 397.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.28, allocations: 3.984 kB / 397.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006406/0.2806, allocations: 0.5014 MB / 397.6 MB, free: 9.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-05/0.2807, allocations: 10.88 kB / 397.6 MB, free: 9.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.2808, allocations: 20.38 kB / 397.6 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002747/0.2811, allocations: 139.9 kB / 397.7 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.2811, allocations: 8.438 kB / 397.8 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006233/0.2817, allocations: 0.711 MB / 398.5 MB, free: 9.262 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2818, allocations: 0 / 398.5 MB, free: 9.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005735/0.2823, allocations: 462.7 kB / 398.9 MB, free: 8.965 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001905/0.2825, allocations: 171.3 kB / 399.1 MB, free: 8.805 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.911e-05/0.2826, allocations: 5.375 kB / 399.1 MB, free: 8.801 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.2829, allocations: 6.734 kB / 399.1 MB, free: 8.797 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.16e-05/0.2829, allocations: 16.23 kB / 399.1 MB, free: 8.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.2829, allocations: 12.19 kB / 399.1 MB, free: 8.785 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006123/0.2836, allocations: 0.5414 MB / 399.7 MB, free: 8.465 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2836, allocations: 4 kB / 399.7 MB, free: 8.461 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006333/0.2842, allocations: 194 kB / 399.9 MB, free: 8.43 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.001412/0.2856, allocations: 1.181 MB / 401 MB, free: 7.559 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005889/0.2862, allocations: 281.7 kB / 401.3 MB, free: 7.402 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2863, allocations: 0 / 401.3 MB, free: 7.402 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003076/0.2866, allocations: 182 kB / 401.5 MB, free: 7.285 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000832/0.2874, allocations: 171.4 kB / 401.7 MB, free: 7.191 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00722/0.2946, allocations: 5.648 MB / 407.3 MB, free: 3.227 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005621/0.2952, allocations: 0.9451 MB / 408.3 MB, free: 2.254 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000424/0.2957, allocations: 106.7 kB / 408.4 MB, free: 2.145 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.296, allocations: 307.3 kB / 408.7 MB, free: 1.844 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.296, allocations: 0 / 408.7 MB, free: 1.844 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04243/0.3384, allocations: 18.15 MB / 426.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.22, allocations: 7.078 kB / 426.8 MB, free: 15.82 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.0002 Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv","/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_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches