Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.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.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001037/0.001037, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 60.09 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.238, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003887/0.242, allocations: 2.808 MB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.2433, allocations: 0.6739 MB / 412.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001938/0.2435, allocations: 7.938 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.2437, allocations: 43.58 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002179/0.2439, allocations: 91.19 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.2442, allocations: 83.83 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000439/0.2447, allocations: 386.5 kB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.2449, allocations: 118.9 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/0.2451, allocations: 143.5 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002072/0.2453, allocations: 159.4 kB / 413.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.791e-05/0.2454, allocations: 36 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.334e-05/0.2455, allocations: 39.94 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.815e-05/0.2455, allocations: 71.75 kB / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001699/0.2457, allocations: 171.2 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000375/0.2461, allocations: 372.4 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2461, allocations: 4 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2461, allocations: 0 / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.2461, allocations: 0 / 413.9 MB, free: 12.33 MB / 334.1 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.001282/0.2474, allocations: 0.6575 MB / 414.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2475, allocations: 8.031 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.042e-05/0.2476, allocations: 58.73 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.422e-05/0.2476, allocations: 32.56 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003806/0.248, allocations: 284.6 kB / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.2481, allocations: 20.94 kB / 415 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.169e-05/0.2481, allocations: 24.38 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00067/0.2488, allocations: 303.5 kB / 415.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.2488, allocations: 0 / 415.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.04e-05/0.2489, allocations: 12 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.2489, allocations: 8 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007689/0.2496, allocations: 249.5 kB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.2513, allocations: 1.089 MB / 416.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007274/0.2521, allocations: 210.5 kB / 416.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003062/0.2524, allocations: 88.78 kB / 417 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.2524, allocations: 4 kB / 417 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000425/0.2529, allocations: 169.9 kB / 417.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.673e-06/0.2529, allocations: 0 / 417.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.002034/0.2549, allocations: 0.5105 MB / 417.6 MB, free: 8.355 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/0.255, allocations: 110.8 kB / 417.8 MB, free: 8.223 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.2553, allocations: 278.7 kB / 418 MB, free: 7.945 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.2553, allocations: 33.7 kB / 418.1 MB, free: 7.906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.2554, allocations: 203.5 kB / 418.3 MB, free: 7.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.535e-05/0.2555, allocations: 35.45 kB / 418.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.616e-05/0.2556, allocations: 49.94 kB / 418.3 MB, free: 7.609 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.2557, allocations: 334.8 kB / 418.7 MB, free: 7.273 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003272/0.2561, allocations: 96.16 kB / 418.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003952/0.2565, allocations: 206.1 kB / 419 MB, free: 6.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000653/0.2571, allocations: 305.3 kB / 419.3 MB, free: 6.582 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.2571, allocations: 4 kB / 419.3 MB, free: 6.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00117/0.2583, allocations: 423.4 kB / 419.7 MB, free: 6.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.976e-05/0.2584, allocations: 37.7 kB / 419.7 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.2584, allocations: 7.938 kB / 419.7 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000335/0.2587, allocations: 76.89 kB / 419.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002099/0.2589, allocations: 51.89 kB / 419.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002309/0.2613, allocations: 1.712 MB / 421.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003681/0.2616, allocations: 51.66 kB / 421.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.615e-05/0.2617, allocations: 8 kB / 421.6 MB, free: 4.062 MB / 334.1 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 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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 (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 {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001681/0.2619, allocations: 145.7 kB / 421.8 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.213e-05/0.2619, allocations: 23.72 kB / 421.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.619e-05/0.262, allocations: 41.58 kB / 421.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.262, allocations: 0 / 421.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.262, allocations: 0 / 421.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.262, allocations: 3.984 kB / 421.8 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002709/0.2623, allocations: 305.5 kB / 422.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.2623, allocations: 4 kB / 422.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.2624, allocations: 23.91 kB / 422.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002529/0.2627, allocations: 72.8 kB / 422.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.2627, allocations: 4 kB / 422.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002089/0.2648, allocations: 1.699 MB / 423.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2648, allocations: 0 / 423.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009541/0.2658, allocations: 313.5 kB / 424.2 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001744/0.266, allocations: 108.8 kB / 424.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.298e-05/0.266, allocations: 11.92 kB / 424.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002416/0.2663, allocations: 24.16 kB / 424.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.728e-05/0.2664, allocations: 31.97 kB / 424.4 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.2664, allocations: 7.938 kB / 424.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001882/0.2666, allocations: 202 kB / 424.6 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2666, allocations: 0 / 424.6 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003483/0.2669, allocations: 79.84 kB / 424.7 MB, free: 0.7422 MB / 334.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: 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 (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 {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001287/0.2682, allocations: 0.8465 MB / 425.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009465/0.2692, allocations: 417.9 kB / 425.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2692, allocations: 0 / 425.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004429/0.2696, allocations: 218.6 kB / 426.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.2699, allocations: 41.31 kB / 426.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00499/0.2749, allocations: 3.003 MB / 429.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.2753, allocations: 0.744 MB / 429.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.2754, allocations: 26.28 kB / 430 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.2756, allocations: 83.41 kB / 430 MB, free: 11.12 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2756, allocations: 0 / 430 MB, free: 11.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02714/0.3027, allocations: 6.959 MB / 437 MB, free: 4.316 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.67, allocations: 8.875 kB / 437 MB, free: 4.309 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.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.amplitude,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