Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 114 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 47.42 kB / 300.2 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1234, allocations: 49.45 MB / 349.7 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004652/0.1281, allocations: 2.791 MB / 352.5 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.1295, allocations: 0.6778 MB / 353.2 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002694/0.1298, allocations: 4 kB / 353.2 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001936/0.13, allocations: 27.77 kB / 353.2 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002856/0.1303, allocations: 83.39 kB / 353.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/0.1306, allocations: 79.92 kB / 353.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004753/0.1311, allocations: 358.5 kB / 353.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.1313, allocations: 84.56 kB / 353.8 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.1316, allocations: 131.5 kB / 353.9 MB, free: 388 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002213/0.1318, allocations: 155.3 kB / 354.1 MB, free: 232 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.161e-05/0.1319, allocations: 36 kB / 354.1 MB, free: 196 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.239e-05/0.1319, allocations: 28 kB / 354.1 MB, free: 168 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.556e-05/0.132, allocations: 63.77 kB / 354.2 MB, free: 104 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001798/0.1322, allocations: 139.4 kB / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003621/0.1326, allocations: 327 kB / 354.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1326, allocations: 0 / 354.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1326, allocations: 0 / 354.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.1326, allocations: 0 / 354.6 MB, free: 15.64 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.00135/0.134, allocations: 0.6379 MB / 355.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.134, allocations: 11.97 kB / 355.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.141e-05/0.1341, allocations: 62.72 kB / 355.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.1342, allocations: 32.56 kB / 355.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003509/0.1346, allocations: 279.6 kB / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.1346, allocations: 16.81 kB / 355.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.308e-05/0.1347, allocations: 16.38 kB / 355.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006311/0.1353, allocations: 281.8 kB / 356 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.1353, allocations: 0 / 356 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.753e-05/0.1354, allocations: 16 kB / 356 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.1354, allocations: 4 kB / 356 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007045/0.1361, allocations: 237.6 kB / 356.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.1377, allocations: 0.952 MB / 357.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008197/0.1386, allocations: 238.5 kB / 357.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003133/0.1389, allocations: 100.8 kB / 357.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.1389, allocations: 3.938 kB / 357.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005571/0.1395, allocations: 181.7 kB / 357.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.563e-06/0.1395, allocations: 4 kB / 357.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002292/0.1418, allocations: 0.6553 MB / 358.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.147e-05/0.1419, allocations: 106.8 kB / 358.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002866/0.1422, allocations: 278.4 kB / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.1422, allocations: 33.7 kB / 358.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.1424, allocations: 175.8 kB / 358.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.27e-05/0.1424, allocations: 43.45 kB / 359 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.12e-05/0.1425, allocations: 45.83 kB / 359 MB, free: 10.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002127/0.1427, allocations: 334.8 kB / 359.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003383/0.1431, allocations: 103.9 kB / 359.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004855/0.1436, allocations: 178.2 kB / 359.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006808/0.1442, allocations: 288.7 kB / 359.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1443, allocations: 4 kB / 359.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001284/0.1456, allocations: 435.7 kB / 360.3 MB, free: 9.574 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.855e-05/0.1456, allocations: 33.77 kB / 360.4 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1456, allocations: 8 kB / 360.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003652/0.146, allocations: 80.73 kB / 360.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.1462, allocations: 43.95 kB / 360.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003098/0.1493, allocations: 2.013 MB / 362.5 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003623/0.1497, allocations: 47.8 kB / 362.5 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.1497, allocations: 12 kB / 362.6 MB, free: 7.188 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 19 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001934/0.1499, allocations: 141.8 kB / 362.7 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.753e-05/0.15, allocations: 27.66 kB / 362.7 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.405e-05/0.15, allocations: 29.86 kB / 362.8 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.1501, allocations: 0 / 362.8 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.1501, allocations: 7.938 kB / 362.8 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.1501, allocations: 0 / 362.8 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003336/0.1504, allocations: 289.4 kB / 363 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1504, allocations: 0 / 363 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.1506, allocations: 23.98 kB / 363.1 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002848/0.1509, allocations: 80.73 kB / 363.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.1509, allocations: 4 kB / 363.2 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002596/0.1535, allocations: 1.927 MB / 365.1 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1535, allocations: 0 / 365.1 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.1546, allocations: 361.4 kB / 365.4 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.409e-05/0.1547, allocations: 104.8 kB / 365.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.961e-05/0.1547, allocations: 0 / 365.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002571/0.155, allocations: 35.95 kB / 365.6 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.539e-05/0.1551, allocations: 19.97 kB / 365.6 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.1551, allocations: 4 kB / 365.6 MB, free: 3.914 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002147/0.1553, allocations: 197.9 kB / 365.8 MB, free: 3.723 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.452e-06/0.1553, allocations: 4 kB / 365.8 MB, free: 3.719 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004643/0.1558, allocations: 75.77 kB / 365.9 MB, free: 3.645 MB / 302.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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001486/0.1573, allocations: 0.9049 MB / 366.8 MB, free: 2.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.1586, allocations: 477.8 kB / 367.2 MB, free: 2.215 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.1586, allocations: 448 / 367.2 MB, free: 2.215 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004952/0.1591, allocations: 234.6 kB / 367.5 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003657/0.1595, allocations: 51.45 kB / 367.5 MB, free: 1.926 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2322/0.3917, allocations: 3.506 MB / 371 MB, free: 24.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.392, allocations: 0.7475 MB / 371.8 MB, free: 23.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.3921, allocations: 27.23 kB / 371.8 MB, free: 23.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.3922, allocations: 78.34 kB / 371.9 MB, free: 23.73 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3922, allocations: 3.688 kB / 371.9 MB, free: 23.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0309/0.4231, allocations: 6.048 MB / 377.9 MB, free: 23.33 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/0.4234, allocations: 254 kB / 378.2 MB, free: 23.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.189/2.612, allocations: 3.828 kB / 378.2 MB, free: 23.08 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,opAmp.out.v,opAmp.out.i Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,k,opAmp.V0,opAmp.Vns,opAmp.Vps,opAmp.homotopyType,opAmp.i_s,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.p_in,opAmp.p_out,opAmp.p_s,opAmp.strict,opAmp.useSupply,opAmp.v_in,opAmp.v_out,opAmp.vns,opAmp.vps,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,vHys,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