Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001037/0.001037, allocations: 199.9 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, 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.0007916/0.0007916, allocations: 108.3 kB / 296.7 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002035/0.0002035, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2014, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.002313/0.2038, allocations: 2.454 MB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.2051, allocations: 0.7117 MB / 411.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002504/0.2054, allocations: 4.625 kB / 411.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.2055, allocations: 34.86 kB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000167/0.2057, allocations: 83.36 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002674/0.206, allocations: 67.92 kB / 411.5 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002706/0.2062, allocations: 350.5 kB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.2064, allocations: 113 kB / 411.9 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002112/0.2067, allocations: 119.5 kB / 412.1 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.2068, allocations: 135.4 kB / 412.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.2068, allocations: 22.81 kB / 412.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.883e-05/0.2069, allocations: 16 kB / 412.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.1e-05/0.2069, allocations: 55.75 kB / 412.3 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.2071, allocations: 165 kB / 412.4 MB, free: 23.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002086/0.2073, allocations: 328.3 kB / 412.8 MB, free: 23.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.2073, allocations: 0 / 412.8 MB, free: 23.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2073, allocations: 0 / 412.8 MB, free: 23.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.239e-06/0.2073, allocations: 0 / 412.8 MB, free: 23.03 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.000986/0.2083, allocations: 0.6325 MB / 413.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.2083, allocations: 8.031 kB / 413.4 MB, free: 22.33 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.071e-05/0.2084, allocations: 58.73 kB / 413.5 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.736e-05/0.2085, allocations: 32.56 kB / 413.5 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002475/0.2087, allocations: 292.6 kB / 413.8 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.2087, allocations: 16.94 kB / 413.8 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.068e-05/0.2088, allocations: 24.38 kB / 413.8 MB, free: 21.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000602/0.2094, allocations: 331.8 kB / 414.1 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.2094, allocations: 0 / 414.1 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.444e-05/0.2095, allocations: 12 kB / 414.2 MB, free: 21.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.2095, allocations: 8 kB / 414.2 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007025/0.2102, allocations: 306 kB / 414.5 MB, free: 21.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.2118, allocations: 1.2 MB / 415.7 MB, free: 19.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008089/0.2126, allocations: 278.5 kB / 415.9 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003135/0.2129, allocations: 120 kB / 416.1 MB, free: 19.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.213, allocations: 0 / 416.1 MB, free: 19.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004301/0.2134, allocations: 192.9 kB / 416.2 MB, free: 19.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.172e-06/0.2134, allocations: 0 / 416.2 MB, free: 19.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001887/0.2153, allocations: 0.663 MB / 416.9 MB, free: 18.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.2154, allocations: 89.11 kB / 417 MB, free: 18.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001934/0.2156, allocations: 262.5 kB / 417.3 MB, free: 18.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.2156, allocations: 29.7 kB / 417.3 MB, free: 18.22 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.825e-05/0.2157, allocations: 191.6 kB / 417.5 MB, free: 18.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.219e-05/0.2157, allocations: 51.33 kB / 417.5 MB, free: 17.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.268e-05/0.2157, allocations: 7.938 kB / 417.5 MB, free: 17.97 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.372e-05/0.2158, allocations: 330.8 kB / 417.8 MB, free: 17.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003172/0.2161, allocations: 116.2 kB / 418 MB, free: 17.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003316/0.2165, allocations: 211.5 kB / 418.2 MB, free: 17.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006293/0.2171, allocations: 334.1 kB / 418.5 MB, free: 16.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2171, allocations: 0 / 418.5 MB, free: 16.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001045/0.2182, allocations: 475.8 kB / 419 MB, free: 16.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.2182, allocations: 37.64 kB / 419 MB, free: 16.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2182, allocations: 4 kB / 419 MB, free: 16.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002846/0.2185, allocations: 72.88 kB / 419.1 MB, free: 16.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.2187, allocations: 59.89 kB / 419.1 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002143/0.2209, allocations: 1.748 MB / 420.9 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003795/0.2213, allocations: 63.75 kB / 420.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.888e-05/0.2213, allocations: 15.94 kB / 421 MB, free: 14.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (25): * Single equations (assignments): 23 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001414/0.2215, allocations: 150.2 kB / 421.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.484e-05/0.2215, allocations: 15.81 kB / 421.1 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.707e-05/0.2216, allocations: 29.7 kB / 421.1 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2216, allocations: 7.984 kB / 421.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.2216, allocations: 0 / 421.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2216, allocations: 3.938 kB / 421.2 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002582/0.2218, allocations: 313.4 kB / 421.5 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2219, allocations: 4 kB / 421.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.2221, allocations: 35.97 kB / 421.5 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002444/0.2224, allocations: 72.75 kB / 421.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.2224, allocations: 4 kB / 421.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001743/0.2241, allocations: 1.534 MB / 423.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2242, allocations: 0 / 423.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.2257, allocations: 0.4936 MB / 423.6 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.791e-05/0.2258, allocations: 104.8 kB / 423.7 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.664e-05/0.2258, allocations: 8 kB / 423.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002719/0.2261, allocations: 35.95 kB / 423.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.131e-05/0.2262, allocations: 19.97 kB / 423.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.2262, allocations: 4 kB / 423.8 MB, free: 11.24 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001551/0.2264, allocations: 190 kB / 424 MB, free: 11.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2264, allocations: 0 / 424 MB, free: 11.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003825/0.2268, allocations: 67.84 kB / 424 MB, free: 10.99 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.c.v) * 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 (11): * Single equations (assignments): 8 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001698/0.2285, allocations: 1.031 MB / 425.1 MB, free: 9.926 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001341/0.2298, allocations: 0.5057 MB / 425.6 MB, free: 9.395 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2299, allocations: 0.5625 kB / 425.6 MB, free: 9.395 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004488/0.2303, allocations: 236.8 kB / 425.8 MB, free: 9.152 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.2307, allocations: 53.95 kB / 425.8 MB, free: 9.098 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006075/0.2368, allocations: 2.203 MB / 428.1 MB, free: 6.809 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.2369, allocations: 0.7558 MB / 428.8 MB, free: 6.027 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.2371, allocations: 79.41 kB / 428.9 MB, free: 5.949 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2371, allocations: 0 / 428.9 MB, free: 5.949 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.967/3.204, allocations: 5.222 MB / 434.1 MB, free: 0.7188 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Integrator/Integrator.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,integrator.c.v,integrator.opAmp.out.v,integrator.opAmp.out.i Variables in the result:Vin,der(integrator.c.v),f,ground.p.i,ground.p.v,integrator.C,integrator.R,integrator.V0,integrator.Vns,integrator.Vps,integrator.c.C,integrator.c.i,integrator.c.n.i,integrator.c.n.v,integrator.c.p.i,integrator.c.p.v,integrator.c.v,integrator.f,integrator.i1,integrator.i2,integrator.k,integrator.n1.i,integrator.n1.v,integrator.n2.i,integrator.n2.v,integrator.opAmp.V0,integrator.opAmp.Vns,integrator.opAmp.Vps,integrator.opAmp.homotopyType,integrator.opAmp.i_s,integrator.opAmp.in_n.i,integrator.opAmp.in_n.v,integrator.opAmp.in_p.i,integrator.opAmp.in_p.v,integrator.opAmp.out.i,integrator.opAmp.out.v,integrator.opAmp.p_in,integrator.opAmp.p_out,integrator.opAmp.p_s,integrator.opAmp.simplifiedExpr,integrator.opAmp.strict,integrator.opAmp.useSupply,integrator.opAmp.v_in,integrator.opAmp.v_out,integrator.opAmp.vns,integrator.opAmp.vps,integrator.p1.i,integrator.p1.v,integrator.p2.i,integrator.p2.v,integrator.r.LossPower,integrator.r.R,integrator.r.R_actual,integrator.r.T,integrator.r.T_heatPort,integrator.r.T_ref,integrator.r.alpha,integrator.r.i,integrator.r.n.i,integrator.r.n.v,integrator.r.p.i,integrator.r.p.v,integrator.r.useHeatPort,integrator.r.v,integrator.v,integrator.v1,integrator.v2,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