Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001071/0.001071, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0012/0.0012, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 68.23 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09631/0.09759, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004617/0.1022, allocations: 2.934 MB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.1042, allocations: 0.7985 MB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003431/0.1045, allocations: 11.94 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002184/0.1048, allocations: 51.5 kB / 361.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003446/0.1052, allocations: 95.06 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004736/0.1056, allocations: 119.7 kB / 361.6 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005468/0.1062, allocations: 402.4 kB / 362 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002838/0.1065, allocations: 139.2 kB / 362.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003535/0.1069, allocations: 159.4 kB / 362.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003102/0.1072, allocations: 167.3 kB / 362.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-05/0.1073, allocations: 36 kB / 362.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.1074, allocations: 40 kB / 362.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.804e-05/0.1075, allocations: 79.69 kB / 362.6 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000218/0.1077, allocations: 171.2 kB / 362.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005111/0.1082, allocations: 434.8 kB / 363.2 MB, free: 8.398 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1083, allocations: 0 / 363.2 MB, free: 8.398 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1083, allocations: 0 / 363.2 MB, free: 8.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.512e-05/0.1083, allocations: 0 / 363.2 MB, free: 8.398 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001222/0.1095, allocations: 0.6207 MB / 363.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.1096, allocations: 8.031 kB / 363.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.723e-05/0.1096, allocations: 66.61 kB / 363.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.1098, allocations: 48.55 kB / 363.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003145/0.1102, allocations: 284.7 kB / 364.2 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/0.1102, allocations: 24.92 kB / 364.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.357e-05/0.1102, allocations: 28.31 kB / 364.2 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000501/0.1107, allocations: 292.6 kB / 364.5 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.1108, allocations: 0 / 364.5 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.877e-05/0.1108, allocations: 12 kB / 364.5 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1108, allocations: 8 kB / 364.6 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003968/0.1112, allocations: 202.2 kB / 364.7 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.113, allocations: 1.156 MB / 365.9 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005154/0.1135, allocations: 214.6 kB / 366.1 MB, free: 5.254 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003017/0.1138, allocations: 148.8 kB / 366.3 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.1139, allocations: 0 / 366.3 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003325/0.1142, allocations: 173.6 kB / 366.4 MB, free: 4.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.683e-06/0.1142, allocations: 0 / 366.4 MB, free: 4.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001385/0.1156, allocations: 0.5068 MB / 366.9 MB, free: 4.379 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.658e-05/0.1157, allocations: 144.5 kB / 367.1 MB, free: 4.207 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.116, allocations: 241 kB / 367.3 MB, free: 3.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.116, allocations: 29.7 kB / 367.3 MB, free: 3.926 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.1161, allocations: 172.3 kB / 367.5 MB, free: 3.754 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.839e-05/0.1162, allocations: 71.08 kB / 367.6 MB, free: 3.684 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.719e-05/0.1163, allocations: 53.61 kB / 367.6 MB, free: 3.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1164, allocations: 330.8 kB / 368 MB, free: 3.293 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.1166, allocations: 67.98 kB / 368 MB, free: 3.227 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.1167, allocations: 129.1 kB / 368.1 MB, free: 3.082 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002913/0.117, allocations: 173 kB / 368.3 MB, free: 2.902 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1171, allocations: 8.031 kB / 368.3 MB, free: 2.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005037/0.1176, allocations: 290 kB / 368.6 MB, free: 2.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.1176, allocations: 8 kB / 368.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1176, allocations: 0 / 368.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003395/0.118, allocations: 92.73 kB / 368.7 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.1181, allocations: 28.08 kB / 368.7 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002221/0.1203, allocations: 2.135 MB / 370.9 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.1206, allocations: 39.83 kB / 370.9 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/0.1206, allocations: 11.94 kB / 370.9 MB, free: 148 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.1762/0.2968, allocations: 141.4 kB / 371.1 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001918/0.297, allocations: 27.23 kB / 371.1 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001542/0.2972, allocations: 32.05 kB / 371.1 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.2972, allocations: 2.719 kB / 371.1 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.2972, allocations: 6.375 kB / 371.1 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.2973, allocations: 1.656 kB / 371.1 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.2993, allocations: 0.7752 MB / 371.9 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.2994, allocations: 0.6562 kB / 371.9 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002124/0.2996, allocations: 23.3 kB / 371.9 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004837/0.3001, allocations: 90.67 kB / 372 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.3001, allocations: 6.672 kB / 372 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002946/0.3031, allocations: 2.147 MB / 374.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.3031, allocations: 4.469 kB / 374.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.3041, allocations: 451.8 kB / 374.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.3043, allocations: 119.6 kB / 374.7 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.715e-05/0.3044, allocations: 14.22 kB / 374.7 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003288/0.3047, allocations: 19.31 kB / 374.8 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.3049, allocations: 29.17 kB / 374.8 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.744e-05/0.3049, allocations: 10.84 kB / 374.8 MB, free: 17.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002652/0.3052, allocations: 173.9 kB / 375 MB, free: 17.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.3052, allocations: 1.312 kB / 375 MB, free: 17.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008801/0.3061, allocations: 93.56 kB / 375.1 MB, free: 17.87 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001232/0.3073, allocations: 0.9957 MB / 376.1 MB, free: 17.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.3084, allocations: 359.4 kB / 376.4 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3084, allocations: 0 / 376.4 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005632/0.309, allocations: 259.2 kB / 376.7 MB, free: 16.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007105/0.3097, allocations: 71.81 kB / 376.7 MB, free: 16.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005052/0.3148, allocations: 2.792 MB / 379.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002681/0.3151, allocations: 0.7651 MB / 380.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001604/0.3152, allocations: 22.16 kB / 380.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.3154, allocations: 81.38 kB / 380.4 MB, free: 14 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3154, allocations: 0 / 380.4 MB, free: 14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03757/0.353, allocations: 7.446 MB / 387.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.51, allocations: 6.266 kB / 387.8 MB, free: 12.3 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches