Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 197.4 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 226.5 MB / 244.7 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007814/0.0007814, allocations: 111.1 kB / 296.8 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001987/0.0001987, allocations: 4 kB / 356.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.1831, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00296/0.1861, allocations: 4.596 MB / 412.7 MB, free: 23.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006008/0.1921, allocations: 8.314 MB / 421 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004045/0.1925, allocations: 23.88 kB / 421.1 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006131/0.1932, allocations: 306.4 kB / 421.4 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001509/0.1947, allocations: 0.66 MB / 422 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009952/0.1957, allocations: 446 kB / 422.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00173/0.1974, allocations: 1.618 MB / 424.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.1976, allocations: 149.3 kB / 424.2 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002454/0.1979, allocations: 274.7 kB / 424.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002217/0.1981, allocations: 290.2 kB / 424.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.544e-05/0.1982, allocations: 16 kB / 424.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001003/0.1992, allocations: 0.6046 MB / 425.4 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.828e-05/0.1992, allocations: 83.44 kB / 425.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002225/0.1995, allocations: 391.5 kB / 425.9 MB, free: 9.891 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005654/0.2, allocations: 0.8686 MB / 426.7 MB, free: 9.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2001, allocations: 0 / 426.7 MB, free: 9.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2001, allocations: 3.938 kB / 426.7 MB, free: 9.016 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.305e-06/0.2001, allocations: 4 kB / 426.7 MB, free: 9.012 MB / 298.7 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.001189/0.2013, allocations: 1.143 MB / 427.9 MB, free: 7.816 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2013, allocations: 8.031 kB / 427.9 MB, free: 7.809 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.951e-05/0.2014, allocations: 66.67 kB / 428 MB, free: 7.734 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002099/0.2016, allocations: 123.6 kB / 428.1 MB, free: 7.613 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008106/0.2024, allocations: 0.8674 MB / 428.9 MB, free: 6.691 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.2024, allocations: 12.56 kB / 429 MB, free: 6.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.872e-05/0.2025, allocations: 24 kB / 429 MB, free: 6.656 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004015/0.2029, allocations: 303.7 kB / 429.3 MB, free: 6.348 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.2029, allocations: 0 / 429.3 MB, free: 6.348 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.2029, allocations: 12 kB / 429.3 MB, free: 6.336 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.203, allocations: 11.98 kB / 429.3 MB, free: 6.324 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003384/0.2033, allocations: 238.1 kB / 429.5 MB, free: 6.094 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.2046, allocations: 1.19 MB / 430.7 MB, free: 4.832 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.2049, allocations: 194.5 kB / 430.9 MB, free: 4.633 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000247/0.2051, allocations: 229.4 kB / 431.1 MB, free: 4.402 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006978/0.2121, allocations: 8.905 MB / 440 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.2121, allocations: 38.56 kB / 440.1 MB, free: 9.984 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.2122, allocations: 0 / 440.1 MB, free: 9.984 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.001491/0.2137, allocations: 0.6743 MB / 440.7 MB, free: 9.281 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.2137, allocations: 81.11 kB / 440.8 MB, free: 9.184 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008103/0.2145, allocations: 0.7831 MB / 441.6 MB, free: 8.383 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.2146, allocations: 37.7 kB / 441.6 MB, free: 8.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003288/0.2149, allocations: 440.6 kB / 442.1 MB, free: 7.906 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.421e-05/0.2149, allocations: 70.92 kB / 442.1 MB, free: 7.836 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.542e-05/0.215, allocations: 8 kB / 442.2 MB, free: 7.828 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.2151, allocations: 317.9 kB / 442.5 MB, free: 7.512 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.2152, allocations: 68.2 kB / 442.5 MB, free: 7.445 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.2154, allocations: 158.3 kB / 442.7 MB, free: 7.258 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.2158, allocations: 232.2 kB / 442.9 MB, free: 7 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2158, allocations: 4 kB / 442.9 MB, free: 6.996 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005634/0.2164, allocations: 409.1 kB / 443.3 MB, free: 6.586 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.2164, allocations: 4 kB / 443.3 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/0.2164, allocations: 16 kB / 443.3 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003274/0.2167, allocations: 140 kB / 443.5 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.2169, allocations: 39.91 kB / 443.5 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005755/0.2175, allocations: 0.7105 MB / 444.2 MB, free: 5.656 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002261/0.2177, allocations: 35.67 kB / 444.3 MB, free: 5.621 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/0.2178, allocations: 16 kB / 444.3 MB, free: 5.605 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002141/0.218, allocations: 197.7 kB / 444.5 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.2181, allocations: 102.8 kB / 444.6 MB, free: 5.301 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007608/0.2189, allocations: 423.2 kB / 445 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.2189, allocations: 4 kB / 445 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2189, allocations: 0 / 445 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2189, allocations: 0 / 445 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005357/0.2194, allocations: 0.5034 MB / 445.5 MB, free: 4.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.958e-05/0.2195, allocations: 23.98 kB / 445.5 MB, free: 4.297 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.2196, allocations: 15.98 kB / 445.5 MB, free: 4.281 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002476/0.2199, allocations: 128.7 kB / 445.7 MB, free: 4.152 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.2199, allocations: 11.98 kB / 445.7 MB, free: 4.141 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005223/0.2204, allocations: 0.7083 MB / 446.4 MB, free: 3.406 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2204, allocations: 0 / 446.4 MB, free: 3.406 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005163/0.2209, allocations: 463.6 kB / 446.8 MB, free: 2.934 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.2211, allocations: 167.9 kB / 447 MB, free: 2.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.996e-05/0.2212, allocations: 7.984 kB / 447 MB, free: 2.742 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.2214, allocations: 4 kB / 447 MB, free: 2.738 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.199e-05/0.2215, allocations: 19.92 kB / 447 MB, free: 2.719 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.2215, allocations: 8 kB / 447 MB, free: 2.711 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005537/0.222, allocations: 0.5344 MB / 447.6 MB, free: 2.168 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2221, allocations: 0 / 447.6 MB, free: 2.168 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005015/0.2226, allocations: 199.8 kB / 447.8 MB, free: 1.973 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.001112/0.2237, allocations: 1.177 MB / 448.9 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005205/0.2242, allocations: 295 kB / 449.2 MB, free: 472 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2242, allocations: 0 / 449.2 MB, free: 472 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002646/0.2245, allocations: 186.2 kB / 449.4 MB, free: 276 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000694/0.2252, allocations: 159.2 kB / 449.6 MB, free: 120 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006357/0.2316, allocations: 4.311 MB / 453.9 MB, free: 11.56 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.232, allocations: 0.9338 MB / 454.8 MB, free: 10.6 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002938/0.2323, allocations: 315.3 kB / 455.1 MB, free: 10.29 MB / 330.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2323, allocations: 7.938 kB / 455.1 MB, free: 10.29 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.621/3.853, allocations: 17.04 MB / 472.2 MB, free: 9.219 MB / 346.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches