Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009244/0.0009244, allocations: 175 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.188/1.188, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006705/0.0006705, allocations: 94.3 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002885/0.0002886, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1893/0.1897, allocations: 47.56 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.003498/0.1932, allocations: 4.467 MB / 379.6 MB, free: 41.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006835/0.2001, allocations: 7.893 MB / 387.5 MB, free: 35.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005393/0.2006, allocations: 18.25 kB / 387.6 MB, free: 35.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007125/0.2014, allocations: 297.3 kB / 387.8 MB, free: 35.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001781/0.2031, allocations: 0.6441 MB / 388.5 MB, free: 34.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001118/0.2043, allocations: 434.9 kB / 388.9 MB, free: 34.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002039/0.2063, allocations: 1.547 MB / 390.5 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.2066, allocations: 157.9 kB / 390.6 MB, free: 33.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.2069, allocations: 254.8 kB / 390.9 MB, free: 32.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002097/0.2071, allocations: 282.3 kB / 391.1 MB, free: 32.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.337e-05/0.2071, allocations: 16 kB / 391.2 MB, free: 32.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.2082, allocations: 0.5229 MB / 391.7 MB, free: 32.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.781e-05/0.2083, allocations: 79.45 kB / 391.8 MB, free: 32.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002307/0.2085, allocations: 391.5 kB / 392.1 MB, free: 31.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005719/0.2091, allocations: 0.8531 MB / 393 MB, free: 30.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2091, allocations: 0 / 393 MB, free: 30.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2091, allocations: 4 kB / 393 MB, free: 30.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.2091, allocations: 4 kB / 393 MB, free: 30.82 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.001191/0.2103, allocations: 1.143 MB / 394.1 MB, free: 29.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.2103, allocations: 8.031 kB / 394.2 MB, free: 29.62 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.901e-05/0.2104, allocations: 66.72 kB / 394.2 MB, free: 29.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.102e-05/0.2105, allocations: 111.6 kB / 394.3 MB, free: 29.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008136/0.2113, allocations: 0.8513 MB / 395.2 MB, free: 28.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.2113, allocations: 20.56 kB / 395.2 MB, free: 28.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.2114, allocations: 27.92 kB / 395.2 MB, free: 28.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004102/0.2118, allocations: 315.7 kB / 395.5 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.2118, allocations: 0 / 395.5 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.2118, allocations: 8 kB / 395.5 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.2119, allocations: 8 kB / 395.6 MB, free: 28.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003262/0.2122, allocations: 246.1 kB / 395.8 MB, free: 27.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.2134, allocations: 1.19 MB / 397 MB, free: 26.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002762/0.2137, allocations: 210.5 kB / 397.2 MB, free: 26.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/0.214, allocations: 221.3 kB / 397.4 MB, free: 26.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005508/0.2195, allocations: 8.589 MB / 406 MB, free: 16.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/0.2196, allocations: 30.56 kB / 406 MB, free: 16.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.244e-06/0.2196, allocations: 0 / 406 MB, free: 16.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001305/0.2209, allocations: 0.666 MB / 406.7 MB, free: 15.49 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.2209, allocations: 85.09 kB / 406.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006255/0.2216, allocations: 0.7831 MB / 407.6 MB, free: 14.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.2216, allocations: 33.7 kB / 407.6 MB, free: 14.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/0.2218, allocations: 444.6 kB / 408 MB, free: 14.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.843e-05/0.2218, allocations: 74.89 kB / 408.1 MB, free: 14.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.409e-05/0.2219, allocations: 8 kB / 408.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.252e-05/0.2219, allocations: 317.9 kB / 408.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.222, allocations: 72.2 kB / 408.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.2222, allocations: 149.8 kB / 408.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002594/0.2224, allocations: 228.9 kB / 408.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2225, allocations: 0 / 408.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004484/0.2229, allocations: 404.9 kB / 409.2 MB, free: 12.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.2229, allocations: 8.781 kB / 409.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.249e-05/0.223, allocations: 19.92 kB / 409.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002941/0.2233, allocations: 144.2 kB / 409.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.2234, allocations: 39.91 kB / 409.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004335/0.2239, allocations: 0.7122 MB / 410.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/0.2241, allocations: 27.69 kB / 410.2 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.976e-05/0.2241, allocations: 19.98 kB / 410.2 MB, free: 11.81 MB / 298.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.0001783/0.2243, allocations: 190.7 kB / 410.4 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.577e-05/0.2244, allocations: 102.8 kB / 410.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006593/0.2251, allocations: 415.2 kB / 410.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2251, allocations: 0 / 410.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.2251, allocations: 4 kB / 410.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2251, allocations: 3.984 kB / 410.9 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004121/0.2255, allocations: 0.5035 MB / 411.4 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/0.2255, allocations: 19.94 kB / 411.4 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.2256, allocations: 19.97 kB / 411.5 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002161/0.2259, allocations: 132.7 kB / 411.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.2259, allocations: 7.938 kB / 411.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003774/0.2263, allocations: 0.7148 MB / 412.3 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2263, allocations: 0 / 412.3 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004087/0.2267, allocations: 463.7 kB / 412.8 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.2268, allocations: 163.9 kB / 412.9 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.582e-05/0.2269, allocations: 8 kB / 412.9 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001914/0.2271, allocations: 11.98 kB / 412.9 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.654e-05/0.2272, allocations: 15.92 kB / 413 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.2272, allocations: 11.94 kB / 413 MB, free: 8.914 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004222/0.2276, allocations: 0.5305 MB / 413.5 MB, free: 8.375 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2276, allocations: 0 / 413.5 MB, free: 8.375 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004683/0.2281, allocations: 199.7 kB / 413.7 MB, free: 8.18 MB / 298.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.000872/0.229, allocations: 1.177 MB / 414.9 MB, free: 6.973 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004462/0.2294, allocations: 279.2 kB / 415.1 MB, free: 6.688 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2294, allocations: 0 / 415.1 MB, free: 6.688 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002196/0.2297, allocations: 187.1 kB / 415.3 MB, free: 6.492 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000506/0.2302, allocations: 136.8 kB / 415.5 MB, free: 6.359 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005545/0.2357, allocations: 4.31 MB / 419.8 MB, free: 1.816 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.236, allocations: 0.9371 MB / 420.7 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002367/0.2363, allocations: 311.3 kB / 421 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.2363, allocations: 4 kB / 421 MB, free: 0.543 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.475/3.711, allocations: 17.01 MB / 438 MB, free: 15.5 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches