Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001645/0.001645, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002084/0.002084, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 60.19 kB / 307.1 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1048, allocations: 50.53 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004775/0.1096, allocations: 2.774 MB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.1112, allocations: 0.7051 MB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002805/0.1115, allocations: 11.94 kB / 361.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.1117, allocations: 43.58 kB / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003266/0.1121, allocations: 87.25 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003941/0.1125, allocations: 95.8 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000589/0.1131, allocations: 354.6 kB / 361.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002513/0.1133, allocations: 88.7 kB / 361.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002804/0.1136, allocations: 131.5 kB / 361.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002565/0.1139, allocations: 147.3 kB / 362 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.728e-05/0.114, allocations: 32 kB / 362 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.473e-05/0.1141, allocations: 28 kB / 362.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.892e-05/0.1141, allocations: 63.77 kB / 362.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001893/0.1143, allocations: 151.2 kB / 362.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003845/0.1147, allocations: 315.2 kB / 362.6 MB, free: 8.934 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1147, allocations: 7.938 kB / 362.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1148, allocations: 11.94 kB / 362.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.502e-05/0.1148, allocations: 0 / 362.6 MB, free: 8.914 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.001574/0.1164, allocations: 0.634 MB / 363.2 MB, free: 8.223 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.1164, allocations: 8.031 kB / 363.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.479e-05/0.1165, allocations: 58.73 kB / 363.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.1166, allocations: 32.56 kB / 363.3 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.117, allocations: 279.6 kB / 363.6 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.1171, allocations: 12.81 kB / 363.6 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.298e-05/0.1171, allocations: 20.38 kB / 363.6 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000688/0.1178, allocations: 281.9 kB / 363.9 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1178, allocations: 0 / 363.9 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.741e-05/0.1179, allocations: 4 kB / 363.9 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.1179, allocations: 8 kB / 363.9 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007679/0.1186, allocations: 249.5 kB / 364.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001724/0.1204, allocations: 0.9442 MB / 365.1 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000838/0.1212, allocations: 242.6 kB / 365.4 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003396/0.1216, allocations: 104.8 kB / 365.5 MB, free: 5.859 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.1216, allocations: 4.156 kB / 365.5 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005265/0.1222, allocations: 189.5 kB / 365.6 MB, free: 5.652 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.573e-06/0.1222, allocations: 0 / 365.6 MB, free: 5.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002357/0.1245, allocations: 0.6474 MB / 366.3 MB, free: 4.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.69e-05/0.1246, allocations: 110.8 kB / 366.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.1249, allocations: 270.4 kB / 366.7 MB, free: 4.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.1249, allocations: 29.7 kB / 366.7 MB, free: 4.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.1251, allocations: 171.9 kB / 366.9 MB, free: 4.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.35e-05/0.1251, allocations: 47.38 kB / 366.9 MB, free: 4.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.129e-05/0.1252, allocations: 45.7 kB / 367 MB, free: 4.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1253, allocations: 334.8 kB / 367.3 MB, free: 3.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003732/0.1257, allocations: 99.78 kB / 367.4 MB, free: 3.836 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003932/0.1261, allocations: 175.7 kB / 367.5 MB, free: 3.637 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007092/0.1268, allocations: 263.2 kB / 367.8 MB, free: 3.352 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.1268, allocations: 8 kB / 367.8 MB, free: 3.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001238/0.1281, allocations: 431.5 kB / 368.2 MB, free: 2.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/0.1281, allocations: 37.75 kB / 368.3 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.1282, allocations: 4 kB / 368.3 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003789/0.1285, allocations: 76.8 kB / 368.3 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.1287, allocations: 43.91 kB / 368.4 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0027/0.1315, allocations: 1.943 MB / 370.3 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003318/0.1318, allocations: 51.86 kB / 370.4 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/0.1318, allocations: 12 kB / 370.4 MB, free: 0.582 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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.0001564/0.132, allocations: 137.4 kB / 370.5 MB, free: 452 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.524e-05/0.1321, allocations: 31.59 kB / 370.6 MB, free: 420 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.727e-05/0.1321, allocations: 29.77 kB / 370.6 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1321, allocations: 4 kB / 370.6 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1321, allocations: 128 / 370.6 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1321, allocations: 0 / 370.6 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002639/0.1324, allocations: 305.3 kB / 370.9 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1324, allocations: 4.031 kB / 370.9 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.1326, allocations: 19.97 kB / 370.9 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1752/0.3078, allocations: 78.67 kB / 371 MB, free: 20.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.3079, allocations: 3.938 kB / 371 MB, free: 20.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002236/0.3101, allocations: 1.749 MB / 372.7 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3101, allocations: 9.453 kB / 372.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.3113, allocations: 354.9 kB / 373.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.519e-05/0.3114, allocations: 103.5 kB / 373.2 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.756e-05/0.3114, allocations: 2.516 kB / 373.2 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.3117, allocations: 38.02 kB / 373.2 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.952e-05/0.3118, allocations: 18.58 kB / 373.3 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.3118, allocations: 3.156 kB / 373.3 MB, free: 19.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002009/0.312, allocations: 191 kB / 373.5 MB, free: 19.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.312, allocations: 1.094 kB / 373.5 MB, free: 19.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003885/0.3124, allocations: 68.36 kB / 373.5 MB, free: 19.33 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.001334/0.3138, allocations: 0.8993 MB / 374.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009936/0.3148, allocations: 413.4 kB / 374.8 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3148, allocations: 3.938 kB / 374.8 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004785/0.3153, allocations: 229.2 kB / 375 MB, free: 18.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.3156, allocations: 42.62 kB / 375.1 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004953/0.3206, allocations: 2.939 MB / 378 MB, free: 16.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.3208, allocations: 0.7468 MB / 378.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001361/0.3209, allocations: 28.61 kB / 378.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.3211, allocations: 78.36 kB / 378.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3211, allocations: 0 / 378.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02893/0.35, allocations: 6.244 MB / 385.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.56, allocations: 17.38 kB / 385.1 MB, free: 14.49 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches