Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.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.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp",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.0008821/0.0008821, allocations: 175.9 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.232/1.232, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007419/0.0007417, allocations: 92.56 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003272/0.0003273, allocations: 8.219 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1974/0.1977, allocations: 47.56 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.00227/0.2, allocations: 2.337 MB / 377.5 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008236/0.2009, allocations: 0.6523 MB / 378.2 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.201, allocations: 12.22 kB / 378.2 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.573e-05/0.2011, allocations: 35.81 kB / 378.2 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.2012, allocations: 72.95 kB / 378.3 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.2014, allocations: 59.86 kB / 378.3 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002932/0.2017, allocations: 344.6 kB / 378.7 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000216/0.2019, allocations: 98.95 kB / 378.8 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.2021, allocations: 122.1 kB / 378.9 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001405/0.2022, allocations: 142.9 kB / 379 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.346e-05/0.2023, allocations: 21.72 kB / 379.1 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.909e-05/0.2023, allocations: 17.34 kB / 379.1 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.28e-05/0.2024, allocations: 56.5 kB / 379.1 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.2025, allocations: 164.3 kB / 379.3 MB, free: 42.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002118/0.2028, allocations: 275.6 kB / 379.6 MB, free: 42.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2028, allocations: 1.031 kB / 379.6 MB, free: 42.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2028, allocations: 0 / 379.6 MB, free: 42.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.2028, allocations: 0 / 379.6 MB, free: 42.09 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001016/0.2038, allocations: 0.6168 MB / 380.2 MB, free: 41.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.2039, allocations: 9.656 kB / 380.2 MB, free: 41.54 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.386e-05/0.2039, allocations: 62.28 kB / 380.3 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.994e-05/0.204, allocations: 33.75 kB / 380.3 MB, free: 41.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002337/0.2042, allocations: 275.1 kB / 380.6 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.2043, allocations: 22.88 kB / 380.6 MB, free: 41.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.423e-05/0.2043, allocations: 21.81 kB / 380.6 MB, free: 41.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006226/0.2049, allocations: 313.8 kB / 380.9 MB, free: 40.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.2049, allocations: 0 / 380.9 MB, free: 40.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.734e-05/0.205, allocations: 15.2 kB / 380.9 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.205, allocations: 6.25 kB / 380.9 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007635/0.2058, allocations: 280.1 kB / 381.2 MB, free: 40.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.2072, allocations: 1.121 MB / 382.3 MB, free: 39.85 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000733/0.208, allocations: 232.8 kB / 382.5 MB, free: 39.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003002/0.2083, allocations: 99.64 kB / 382.6 MB, free: 39.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.2083, allocations: 2.344 kB / 382.6 MB, free: 39.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004299/0.2088, allocations: 180.2 kB / 382.8 MB, free: 39.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.492e-06/0.2088, allocations: 0.8438 kB / 382.8 MB, free: 39.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001974/0.2108, allocations: 0.5551 MB / 383.4 MB, free: 39.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.2108, allocations: 104.2 kB / 383.5 MB, free: 39.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002535/0.2111, allocations: 289.4 kB / 383.8 MB, free: 38.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.2111, allocations: 26.67 kB / 383.8 MB, free: 38.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.45e-05/0.2112, allocations: 200.6 kB / 384 MB, free: 38.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/0.2112, allocations: 37.89 kB / 384 MB, free: 38.65 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.328e-05/0.2112, allocations: 4.969 kB / 384 MB, free: 38.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.451e-05/0.2113, allocations: 340 kB / 384.4 MB, free: 38.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003249/0.2116, allocations: 103.4 kB / 384.5 MB, free: 38.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003571/0.212, allocations: 212.7 kB / 384.7 MB, free: 38.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000645/0.2127, allocations: 335.6 kB / 385 MB, free: 37.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2127, allocations: 1.281 kB / 385 MB, free: 37.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001146/0.2138, allocations: 437.9 kB / 385.4 MB, free: 37.58 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/0.2139, allocations: 40.56 kB / 385.5 MB, free: 37.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.2139, allocations: 6.812 kB / 385.5 MB, free: 37.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003262/0.2142, allocations: 68.69 kB / 385.5 MB, free: 37.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.2144, allocations: 58.95 kB / 385.6 MB, free: 37.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001837/0.2163, allocations: 1.591 MB / 387.2 MB, free: 35.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003598/0.2167, allocations: 67.06 kB / 387.2 MB, free: 35.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.457e-05/0.2167, allocations: 8.688 kB / 387.3 MB, free: 35.94 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.2168, allocations: 150.1 kB / 387.4 MB, free: 35.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.271e-05/0.2169, allocations: 23.38 kB / 387.4 MB, free: 35.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.325e-05/0.2169, allocations: 27.41 kB / 387.5 MB, free: 35.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.2169, allocations: 13.31 kB / 387.5 MB, free: 35.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.2169, allocations: 1.312 kB / 387.5 MB, free: 35.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.2169, allocations: 0 / 387.5 MB, free: 35.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002097/0.2171, allocations: 306 kB / 387.8 MB, free: 35.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2172, allocations: 0 / 387.8 MB, free: 35.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.2173, allocations: 24.81 kB / 387.8 MB, free: 35.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002252/0.2175, allocations: 74.86 kB / 387.9 MB, free: 35.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.2175, allocations: 0 / 387.9 MB, free: 35.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00156/0.2191, allocations: 1.578 MB / 389.4 MB, free: 33.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2191, allocations: 0 / 389.4 MB, free: 33.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008989/0.22, allocations: 333.5 kB / 389.8 MB, free: 33.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.276e-05/0.2201, allocations: 116.7 kB / 389.9 MB, free: 33.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.339e-05/0.2202, allocations: 7.938 kB / 389.9 MB, free: 33.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.2204, allocations: 43.95 kB / 389.9 MB, free: 33.13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.487e-05/0.2205, allocations: 19.97 kB / 390 MB, free: 33.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.2205, allocations: 4 kB / 390 MB, free: 33.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001422/0.2207, allocations: 202 kB / 390.2 MB, free: 32.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2207, allocations: 0 / 390.2 MB, free: 32.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003199/0.221, allocations: 75.84 kB / 390.2 MB, free: 32.84 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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001093/0.2221, allocations: 0.8743 MB / 391.1 MB, free: 31.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008455/0.2229, allocations: 430.6 kB / 391.5 MB, free: 31.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.223, allocations: 0.625 kB / 391.5 MB, free: 31.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003768/0.2233, allocations: 238.5 kB / 391.8 MB, free: 31.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.2236, allocations: 41.03 kB / 391.8 MB, free: 31.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/0.2264, allocations: 1.735 MB / 393.5 MB, free: 29.37 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.2265, allocations: 0.7558 MB / 394.3 MB, free: 28.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.2266, allocations: 71.42 kB / 394.4 MB, free: 28.52 MB / 298.7 MB Notification: Performance of SimCode: time 3.3e-07/0.2266, allocations: 0 / 394.4 MB, free: 28.52 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.9/3.127, allocations: 5.055 MB / 399.4 MB, free: 23.45 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,vIn.signalSource.y Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,ground1.p.i,ground1.p.v,k,opAmp.VMax.i,opAmp.VMax.v,opAmp.VMin.i,opAmp.VMin.v,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.s,opAmp.vin,r1.LossPower,r1.R,r1.R_actual,r1.T,r1.T_heatPort,r1.T_ref,r1.alpha,r1.i,r1.n.i,r1.n.v,r1.p.i,r1.p.v,r1.useHeatPort,r1.v,r2.LossPower,r2.R,r2.R_actual,r2.T,r2.T_heatPort,r2.T_ref,r2.alpha,r2.i,r2.n.i,r2.n.v,r2.p.i,r2.p.v,r2.useHeatPort,r2.v,time,vIn.V,vIn.falling,vIn.i,vIn.n.i,vIn.n.v,vIn.nperiod,vIn.offset,vIn.p.i,vIn.p.v,vIn.period,vIn.rising,vIn.signalSource.T_falling,vIn.signalSource.T_rising,vIn.signalSource.T_start,vIn.signalSource.T_width,vIn.signalSource.amplitude,vIn.signalSource.count,vIn.signalSource.falling,vIn.signalSource.nperiod,vIn.signalSource.offset,vIn.signalSource.period,vIn.signalSource.rising,vIn.signalSource.startTime,vIn.signalSource.width,vIn.signalSource.y,vIn.startTime,vIn.v,vIn.width,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v,vSourceNeg.V,vSourceNeg.i,vSourceNeg.n.i,vSourceNeg.n.v,vSourceNeg.p.i,vSourceNeg.p.v,vSourceNeg.v,vSourcePos.V,vSourcePos.i,vSourcePos.n.i,vSourcePos.n.v,vSourcePos.p.i,vSourcePos.p.v,vSourcePos.v