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.001218/0.001218, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001314/0.001314, allocations: 201.2 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2613, allocations: 50.55 MB / 408.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005973/0.2673, allocations: 5.284 MB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01084/0.2782, allocations: 9.116 MB / 423.1 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009346/0.2792, allocations: 35.69 kB / 423.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001201/0.2804, allocations: 397.4 kB / 423.6 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003213/0.2837, allocations: 0.8302 MB / 424.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001965/0.2856, allocations: 0.5909 MB / 425 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002919/0.2886, allocations: 1.72 MB / 426.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003043/0.2889, allocations: 163 kB / 426.9 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004322/0.2894, allocations: 314.6 kB / 427.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000358/0.2897, allocations: 329.9 kB / 427.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.979e-05/0.2898, allocations: 28 kB / 427.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00138/0.2912, allocations: 0.6633 MB / 428.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.958e-05/0.2913, allocations: 103.3 kB / 428.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003191/0.2916, allocations: 413.5 kB / 428.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001461/0.2931, allocations: 1.207 MB / 429.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.2931, allocations: 0 / 429.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2931, allocations: 0 / 429.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.2931, allocations: 0 / 429.9 MB, free: 12.26 MB / 350.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.001933/0.295, allocations: 1.271 MB / 431.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.2951, allocations: 12.03 kB / 431.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.27e-05/0.2952, allocations: 66.72 kB / 431.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/0.2954, allocations: 123.6 kB / 431.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.2966, allocations: 0.8596 MB / 432.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.2966, allocations: 16.55 kB / 432.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.857e-05/0.2967, allocations: 27.94 kB / 432.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000492/0.2972, allocations: 307.7 kB / 432.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.2972, allocations: 4 kB / 432.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.2972, allocations: 12 kB / 432.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.2973, allocations: 12 kB / 432.6 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000403/0.2977, allocations: 234.1 kB / 432.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.2994, allocations: 1.183 MB / 434 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003647/0.2998, allocations: 198.6 kB / 434.2 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003059/0.3001, allocations: 229.2 kB / 434.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00845/0.3086, allocations: 8.866 MB / 443.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.3086, allocations: 38.56 kB / 443.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 3.266e-06/0.3087, allocations: 0 / 443.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001718/0.3104, allocations: 0.6651 MB / 444 MB, free: 12.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.3104, allocations: 81.11 kB / 444.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008744/0.3113, allocations: 0.7986 MB / 444.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.3114, allocations: 29.7 kB / 444.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003199/0.3117, allocations: 436.7 kB / 445.3 MB, free: 11.06 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.162e-05/0.3118, allocations: 86.73 kB / 445.4 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.416e-05/0.3119, allocations: 53.94 kB / 445.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.312, allocations: 325.9 kB / 445.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.3121, allocations: 68.2 kB / 445.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.3123, allocations: 141.8 kB / 446 MB, free: 10.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003272/0.3126, allocations: 232.5 kB / 446.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.3127, allocations: 4 kB / 446.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005881/0.3133, allocations: 404 kB / 446.6 MB, free: 9.688 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.3133, allocations: 10.81 kB / 446.6 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.863e-05/0.3133, allocations: 12.28 kB / 446.6 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000355/0.3137, allocations: 144.7 kB / 446.8 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.3139, allocations: 35.98 kB / 446.8 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006094/0.3145, allocations: 0.7161 MB / 447.5 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.3147, allocations: 27.69 kB / 447.6 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.508e-05/0.3148, allocations: 12 kB / 447.6 MB, free: 8.707 MB / 366.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.00024/0.315, allocations: 197.7 kB / 447.8 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.3152, allocations: 102.9 kB / 447.9 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007172/0.3159, allocations: 421.7 kB / 448.3 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.3159, allocations: 4 kB / 448.3 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3159, allocations: 0 / 448.3 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3159, allocations: 3.938 kB / 448.3 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005848/0.3165, allocations: 0.5073 MB / 448.8 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-05/0.3165, allocations: 12 kB / 448.8 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/0.3167, allocations: 19.98 kB / 448.8 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003075/0.317, allocations: 140.7 kB / 449 MB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.317, allocations: 11.94 kB / 449 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005818/0.3176, allocations: 0.7032 MB / 449.7 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3176, allocations: 3.984 kB / 449.7 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000558/0.3182, allocations: 448.4 kB / 450.1 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/0.3184, allocations: 171.9 kB / 450.3 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.717e-05/0.3185, allocations: 0 / 450.3 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/0.3187, allocations: 12.06 kB / 450.3 MB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.672e-05/0.3188, allocations: 11.98 kB / 450.3 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.3188, allocations: 15.98 kB / 450.3 MB, free: 5.824 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006005/0.3194, allocations: 0.5422 MB / 450.9 MB, free: 5.273 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3194, allocations: 0 / 450.9 MB, free: 5.273 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005963/0.32, allocations: 203.7 kB / 451.1 MB, free: 5.074 MB / 366.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.001311/0.3213, allocations: 1.188 MB / 452.3 MB, free: 3.855 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006601/0.322, allocations: 279.8 kB / 452.5 MB, free: 3.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.322, allocations: 0.5625 kB / 452.5 MB, free: 3.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003039/0.3223, allocations: 187.2 kB / 452.7 MB, free: 3.375 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007554/0.3231, allocations: 162.4 kB / 452.9 MB, free: 3.215 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006795/0.3299, allocations: 5.299 MB / 458.2 MB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004854/0.3304, allocations: 0.9413 MB / 459.1 MB, free: 12.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003066/0.3307, allocations: 106.7 kB / 459.2 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003132/0.331, allocations: 311.3 kB / 459.5 MB, free: 12.35 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.331, allocations: 0 / 459.5 MB, free: 12.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04464/0.3757, allocations: 18.71 MB / 478.2 MB, free: 9.793 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/13.74, allocations: 7.875 kB / 478.2 MB, free: 9.785 MB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 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.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_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches